Skip to content

Commit b04f64e

Browse files
authored
Simplifying slightly the logic in the cmake (simdjson#1219)
1 parent c6d710b commit b04f64e

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

CMakeLists.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,15 @@ include(cmake/simdjson-user-cmakecache.cmake)
2121

2222
if(SIMDJSON_JUST_LIBRARY)
2323
message( STATUS "Building just the library, omitting all tests, tools and benchmarks." )
24-
endif()
25-
26-
#
27-
# Set up test data
28-
#
29-
if(NOT(SIMDJSON_JUST_LIBRARY))
24+
else(SIMDJSON_JUST_LIBRARY)
25+
# Setup tests
3026
enable_testing()
3127
add_subdirectory(jsonchecker)
3228
add_subdirectory(jsonexamples)
3329
add_library(test-data INTERFACE)
3430
target_link_libraries(test-data INTERFACE jsonchecker-data jsonchecker-minefield-data jsonexamples-data)
35-
endif()
31+
endif(SIMDJSON_JUST_LIBRARY)
3632

37-
#
3833
# Create the top level simdjson library (must be done at this level to use both src/ and include/
3934
# directories) and tools
4035
#

0 commit comments

Comments
 (0)