parent
4c34587668
commit
159bc38883
1 changed files with 3 additions and 3 deletions
|
|
@ -19,20 +19,20 @@ option(CPPAST_BUILD_EXAMPLE "whether or not to build the examples" ON)
|
||||||
option(CPPAST_BUILD_TOOL "whether or not to build the tool" ON)
|
option(CPPAST_BUILD_TOOL "whether or not to build the tool" ON)
|
||||||
option(BUILD_TESTING "build test" OFF) # The ctest variable for building tests
|
option(BUILD_TESTING "build test" OFF) # The ctest variable for building tests
|
||||||
|
|
||||||
if(${CPPAST_BUILD_TEST} OR ${BUILD_TESTING} OR (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR))
|
if((${CPPAST_BUILD_TEST} OR ${BUILD_TESTING}) AND (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR))
|
||||||
set(build_test ON)
|
set(build_test ON)
|
||||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # for the self integration test
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # for the self integration test
|
||||||
else()
|
else()
|
||||||
set(build_test OFF)
|
set(build_test OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${CPPAST_BUILD_EXAMPLE} OR (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR))
|
if(${CPPAST_BUILD_EXAMPLE} AND (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR))
|
||||||
set(build_example ON)
|
set(build_example ON)
|
||||||
else()
|
else()
|
||||||
set(build_example OFF)
|
set(build_example OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${CPPAST_BUILD_TOOL} OR (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR))
|
if(${CPPAST_BUILD_TOOL} AND (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR))
|
||||||
set(build_tool ON)
|
set(build_tool ON)
|
||||||
else()
|
else()
|
||||||
set(build_tool OFF)
|
set(build_tool OFF)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue