Skip to content

Commit

Permalink
unset options to test if they are being inherited
Browse files Browse the repository at this point in the history
  • Loading branch information
white238 committed Mar 18, 2024
1 parent bff19e6 commit 8c7966e
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/projects/cuda-arch/downstream/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Clear variables set in the host-config so we can test that they are inherited
# from the upstream project
foreach(_option MPI CUDA HIP OPENMP)
unset(ENABLE_${_option} CACHE)
unset(ENABLE_${_option})
endforeach()

cmake_minimum_required(VERSION 3.14)

project(cuda-clang-cpp-user LANGUAGES CXX)
Expand Down
7 changes: 7 additions & 0 deletions tests/projects/cuda-mpi-cpp/downstream/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Clear variables set in the host-config so we can test that they are inherited
# from the upstream project
foreach(_option MPI CUDA HIP OPENMP)
unset(ENABLE_${_option} CACHE)
unset(ENABLE_${_option})
endforeach()

cmake_minimum_required(VERSION 3.14)

project(cuda-mpi-cpp-user LANGUAGES CXX)
Expand Down
7 changes: 7 additions & 0 deletions tests/projects/hip-config-test/downstream/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Clear variables set in the host-config so we can test that they are inherited
# from the upstream project
foreach(_option MPI CUDA HIP OPENMP)
unset(ENABLE_${_option} CACHE)
unset(ENABLE_${_option})
endforeach()

cmake_minimum_required(VERSION 3.14)

project(hip-config-test-user LANGUAGES CXX C)
Expand Down
7 changes: 7 additions & 0 deletions tests/projects/mpi-cpp-fortran/downstream/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Clear variables set in the host-config so we can test that they are inherited
# from the upstream project
foreach(_option MPI CUDA HIP OPENMP)
unset(ENABLE_${_option} CACHE)
unset(ENABLE_${_option})
endforeach()

cmake_minimum_required(VERSION 3.14)

project(mpi-cpp-fortran-user LANGUAGES CXX Fortran)
Expand Down
7 changes: 7 additions & 0 deletions tests/projects/openmp-cpp-fortran/downstream/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Clear variables set in the host-config so we can test that they are inherited
# from the upstream project
foreach(_option MPI CUDA HIP OPENMP)
unset(ENABLE_${_option} CACHE)
unset(ENABLE_${_option})
endforeach()

cmake_minimum_required(VERSION 3.14)

project(openmp-cpp-fortran-user LANGUAGES CXX Fortran)
Expand Down
7 changes: 7 additions & 0 deletions tests/projects/openmp-mpi-cpp/downstream/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Clear variables set in the host-config so we can test that they are inherited
# from the upstream project
foreach(_option MPI CUDA HIP OPENMP)
unset(ENABLE_${_option} CACHE)
unset(ENABLE_${_option})
endforeach()

cmake_minimum_required(VERSION 3.14)

project(openmp-mpi-cpp-user LANGUAGES CXX)
Expand Down

0 comments on commit 8c7966e

Please sign in to comment.