File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- option (SIMDJSON_JUST_LIBRARY "Build just the library, omit tests, tools and benchmarks" OFF )
1+
2+ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
3+ message (STATUS "The simdjson repository appears to be standalone." )
4+ option (SIMDJSON_JUST_LIBRARY "Build just the library, omit tests, tools and benchmarks" OFF )
5+ message (STATUS "By default, we attempt to build everything." )
6+ else ()
7+ message (STATUS "The simdjson repository appears to be used as a subdirectory." )
8+ option (SIMDJSON_JUST_LIBRARY "Build just the library, omit tests, tools and benchmarks" ON )
9+ message (STATUS "By default, we just build the library." )
10+ endif ()
11+
12+ if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR} /.git)
13+ set (SIMDJSON_IS_UNDER_GIT ON CACHE BOOL "Whether cmake is under git control" )
14+ message ( STATUS "The simdjson repository appears to be under git." )
15+ else ()
16+ set (SIMDJSON_IS_UNDER_GIT OFF CACHE BOOL "Whether cmake is under git control" )
17+ message ( STATUS "The simdjson repository does not appear to be under git." )
18+ endif ()
219
320#
421# Flags used by exes and by the simdjson library (project-wide flags)
You can’t perform that action at this time.
0 commit comments