Skip to content

Commit a9ecbc8

Browse files
committed
Disable the "check" target for in-Boost builds.
1 parent bb0fb88 commit a9ecbc8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ target_link_libraries(boost_parser
2424

2525
if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
2626

27+
set(disable_check_target true)
2728
add_subdirectory(test)
2829

2930
endif()

test/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ include(CTest)
44

55
enable_testing()
66

7-
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -j4 -C ${CMAKE_CFG_INTDIR})
7+
if (NOT DEFINED disable_check_target)
8+
add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -j4 -C ${CMAKE_CFG_INTDIR})
9+
endif()
810

911
##################################################
1012
# Parser tests

0 commit comments

Comments
 (0)