File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed
tests/beman/inplace_vector Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,17 @@ add_test(NAME beman.inplace_vector.test COMMAND beman.inplace_vector.test)
1616# test if the targets are findable from the build directory
1717# NOTE: For an INTERFACE library and multi config generators, we may always use
1818# the -C Debug config type instead of $<CONFIG> to prevent problems! CK
19- add_test(
20- NAME find-package-test
21- COMMAND
22- ${CMAKE_CTEST_COMMAND} --verbose --output-on-failure -C Debug
23- --build-and-test "${PROJECT_SOURCE_DIR}/examples"
24- "${CMAKE_CURRENT_BINARY_DIR}/find-package-test" --build-generator
25- ${CMAKE_GENERATOR} --build-makeprogram ${CMAKE_MAKE_PROGRAM}
26- --build-options "-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}"
27- "-DCMAKE_CXX_STANDARD =${CMAKE_CXX_STANDARD}" "-DCMAKE_BUILD_TYPE=Debug"
28- "-DCMAKE_PREFIX_PATH =${CMAKE_PREFIX_PATH}"
29- )
19+ if(CMAKE_BUILD_TYPE STREQUAL Debug)
20+ add_test(
21+ NAME find-package-test
22+ COMMAND
23+ ${CMAKE_CTEST_COMMAND} --verbose --output-on-failure -C Debug
24+ --build-and-test "${PROJECT_SOURCE_DIR}/examples"
25+ "${CMAKE_CURRENT_BINARY_DIR}/find-package-test" --build-generator
26+ ${CMAKE_GENERATOR} --build-makeprogram ${CMAKE_MAKE_PROGRAM}
27+ --build-options "-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}"
28+ "-DCMAKE_CXX_STANDARD =${CMAKE_CXX_STANDARD}"
29+ "-DCMAKE_BUILD_TYPE =Debug"
30+ "-DCMAKE_PREFIX_PATH =${CMAKE_PREFIX_PATH}"
31+ )
32+ endif()
You can’t perform that action at this time.
0 commit comments