Skip to content

Commit b33b285

Browse files
committed
Coerce BUILD_TESTS to OFF if there's no graphqljson
1 parent 7a2d07b commit b33b285

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ if(BUILD_GRAPHQLJSON)
9595
RUNTIME DESTINATION bin
9696
ARCHIVE DESTINATION lib
9797
LIBRARY DESTINATION lib)
98+
else()
99+
set(BUILD_TESTS OFF)
98100
endif()
99101

100102
option(UPDATE_SAMPLES "Regenerate the sample schema sources whether or not we're building the tests and the sample library." ON)

0 commit comments

Comments
 (0)