Skip to content

Commit bd9c003

Browse files
committed
Exclude TimeIntegrator and its tests
1 parent 43a9638 commit bd9c003

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ add_feature_info(CMAKE_INSTALL_RPATH_USE_LINK_PATH CMAKE_INSTALL_RPATH_USE_LINK_
163163

164164
option(CODE_COVERAGE "Enable coverage reporting" OFF)
165165

166+
option(ENABLE_TEST_RADIAL "Build TimeIntegrator and radial tests" OFF)
167+
add_feature_info(ENABLE_TEST_RADIAL ENABLE_TEST_RADIAL "Build TimeIntegrator and radial tests")
168+
169+
166170
if(CODE_COVERAGE)
167171
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
168172
message(STATUS "Enabling coverage flags")

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ endif()
3131
add_executable(testLogging testLogging.cpp)
3232
target_link_libraries(testLogging PRIVATE CADET::CompileOptions)
3333

34-
if (NOT WIN32)
34+
if (ENABLE_TEST_RADIAL)
3535
add_executable(testRadialKernel testRadialKernel.cpp TimeIntegrator.cpp ${CMAKE_SOURCE_DIR}/src/libcadet/Logging.cpp ${CMAKE_SOURCE_DIR}/src/libcadet/AutoDiff.cpp ${CMAKE_SOURCE_DIR}/src/libcadet/model/paramdep/ParameterDependenceBase.cpp)
3636
target_link_libraries(testRadialKernel PRIVATE CADET::CompileOptions CADET::AD SUNDIALS::sundials_idas ${SUNDIALS_NVEC_TARGET} ${EIGEN_TARGET} )
3737
target_include_directories(testRadialKernel PRIVATE ${CMAKE_SOURCE_DIR}/test ${CMAKE_BINARY_DIR}/src/libcadet)

0 commit comments

Comments
 (0)