File tree Expand file tree Collapse file tree 4 files changed +11
-8
lines changed
Expand file tree Collapse file tree 4 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ endif()
1212if (CCR_STANDALONE)
1313 set (CCR_DEFAULTOPT On )
1414 set (CCR_EXCLUDE_FROM_ALL "" )
15+ set (CMAKE_COMPILE_WARNING_AS_ERROR On )
1516else ()
1617 set (CCR_DEFAULTOPT Off )
1718 set (CCR_EXCLUDE_FROM_ALL "EXCLUDE_FROM_ALL" )
@@ -59,7 +60,7 @@ include(CTest)
5960include (GoogleTest)
6061
6162if (CCR_FETCH_DEPS)
62- add_subdirectory (external)
63+ add_subdirectory (external SYSTEM )
6364else ()
6465 find_package (CLI11 REQUIRED)
6566 find_package (nlohmann_json REQUIRED)
7172endif ()
7273
7374add_subdirectory (cucumber_cpp)
74- add_subdirectory (compatibility)
75+
76+ if (CCR_STANDALONE)
77+ add_subdirectory (compatibility)
78+ endif ()
Original file line number Diff line number Diff line change 11add_subdirectory (library)
22add_subdirectory (runner)
3- add_subdirectory (example)
4- add_subdirectory (acceptance_test)
3+
4+ if (CCR_STANDALONE)
5+ add_subdirectory (example)
6+ add_subdirectory (acceptance_test)
7+ endif ()
58
69add_library (cucumber_cpp INTERFACE )
710
Original file line number Diff line number Diff line change 1- set (CMAKE_COMPILE_WARNING_AS_ERROR On )
2-
31add_library (cucumber_cpp.library ${CCR_EXCLUDE_FROM_ALL} )
42
53target_sources (cucumber_cpp.library PRIVATE
Original file line number Diff line number Diff line change 1- set (CMAKE_COMPILE_WARNING_AS_ERROR On )
2-
31add_library (cucumber_cpp.library.tag_expression ${CCR_EXCLUDE_FROM_ALL} )
42
53target_sources (cucumber_cpp.library.tag_expression PRIVATE
You can’t perform that action at this time.
0 commit comments