Skip to content

Commit

Permalink
Merge branch '112-consistent-naming-of-cmake-options' into 'master'
Browse files Browse the repository at this point in the history
Resolve "Consistent naming of CMake options"

Closes #112

See merge request OPAL/Libraries/ippl!120
  • Loading branch information
matt-frey committed Dec 24, 2021
2 parents 5b315d1 + 4c09454 commit e877bf8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,25 +66,25 @@ option (ENABLE_SOLVERS "Enable IPPL solvers" OFF)

add_subdirectory (src)

option (ENABLE_IPPLTESTS "IPPL Tests" OFF)
if (ENABLE_IPPLTESTS)
option (ENABLE_TESTS "Enable IPPL tests" OFF)
if (ENABLE_TESTS)
add_subdirectory (test)
endif ()

option (ENABLE_ALPINE, "Alpine" OFF)
option (ENABLE_ALPINE, "Enable Alpine" OFF)
if (ENABLE_ALPINE)
if (NOT ENABLE_SOLVERS)
message (FATAL_ERROR "Cannot enable Alpine since Solver not enabled (-DENABLE_SOLVERS=ON)!")
endif ()
if (NOT ENABLE_FFT)
message (FATAL_ERROR "Cannot enable Alpine since FFT not enabled (-DENABLE_FFT=ON)!")
endif ()
message (STATUS "Enabling Alpine")
message (STATUS "Enable Alpine")
add_subdirectory (alpine)
endif ()

option (BUILD_UNIT_TESTS "Unit tests" OFF)
if (BUILD_UNIT_TESTS)
option (ENABLE_UNIT_TESTS "Enable unit tests" OFF)
if (ENABLE_UNIT_TESTS)
find_package (GTest REQUIRED HINT $ENV{GTEST_PREFIX})
add_subdirectory (unit_tests)
endif ()
Expand Down

0 comments on commit e877bf8

Please sign in to comment.