File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,25 +14,25 @@ endif()
14
14
option (CPPAST_ENABLE_ASSERTIONS "whether or not to enable internal assertions for the cppast library" ${default_assertions} )
15
15
option (CPPAST_ENABLE_PRECONDITION_CHECKS "whether or not to enable precondition checks" ON )
16
16
17
- option (CPPAST_BUILD_TEST "whether or not to build the tests" ON )
18
- option (CPPAST_BUILD_EXAMPLE "whether or not to build the examples" ON )
19
- option (CPPAST_BUILD_TOOL "whether or not to build the tool" ON )
17
+ option (CPPAST_BUILD_TEST "whether or not to build the tests" OFF )
18
+ option (CPPAST_BUILD_EXAMPLE "whether or not to build the examples" OFF )
19
+ option (CPPAST_BUILD_TOOL "whether or not to build the tool" OFF )
20
20
option (BUILD_TESTING "build test" OFF ) # The ctest variable for building tests
21
21
22
- if ((${CPPAST_BUILD_TEST} OR ${BUILD_TESTING} ) AND (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR ))
22
+ if ((${CPPAST_BUILD_TEST} OR ${BUILD_TESTING} ) OR (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR ))
23
23
set (build_test ON )
24
24
set (CMAKE_EXPORT_COMPILE_COMMANDS ON ) # for the self integration test
25
25
else ()
26
26
set (build_test OFF )
27
27
endif ()
28
28
29
- if (${CPPAST_BUILD_EXAMPLE} AND (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR ))
29
+ if (${CPPAST_BUILD_EXAMPLE} OR (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR ))
30
30
set (build_example ON )
31
31
else ()
32
32
set (build_example OFF )
33
33
endif ()
34
34
35
- if (${CPPAST_BUILD_TOOL} AND (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR ))
35
+ if (${CPPAST_BUILD_TOOL} OR (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR ))
36
36
set (build_tool ON )
37
37
else ()
38
38
set (build_tool OFF )
You can’t perform that action at this time.
0 commit comments