Skip to content

Commit

Permalink
conditionally add generator expression
Browse files Browse the repository at this point in the history
  • Loading branch information
goatshriek committed Jul 30, 2024
1 parent bfb6369 commit 35413c2
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1088,10 +1088,17 @@ add_custom_target(build-test
DEPENDS ${STUMPLESS_FUNCTION_TESTS}
)

add_custom_target(check
COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIG>
DEPENDS ${STUMPLESS_FUNCTION_TESTS}
)
if(CMAKE_CONFIGURATION_TYPES)
add_custom_target(check
COMMAND ${CMAKE_CTEST_COMMAND} -C $<CONFIG>
DEPENDS ${STUMPLESS_FUNCTION_TESTS}
)
else()
add_custom_target(check
COMMAND ${CMAKE_CTEST_COMMAND}
DEPENDS ${STUMPLESS_FUNCTION_TESTS}
)
endif()


# examples
Expand Down

0 comments on commit 35413c2

Please sign in to comment.