File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
3939set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
4040
4141option (TESTING "Build tests" ON )
42+ option (BUILD_INTERNAL_DEPS "Build internal dependencies from git submodules" ON )
4243option (CLANG_FORMAT "Enable clang-format target" ON )
4344option (CLANG_TIDY "Enable clang-tidy checks during compilation" OFF )
4445option (COVERAGE "Enable generation of coverage info" OFF )
@@ -101,19 +102,23 @@ if (CLANG_FORMAT)
101102 include (cmake/clang-format.cmake)
102103endif ()
103104
104- add_subdirectory (deps)
105+ if (BUILD_INTERNAL_DEPS)
106+ add_subdirectory (deps)
107+ endif ()
105108
106109include_directories (
107110 # project includes
108111 ${PROJECT_SOURCE_DIR} /core
109112)
110113
111- include_directories (
112- SYSTEM
113- # system includes
114- deps/outcome
115- ${TINY_CBOR_INCLUDE_DIRS}
116- )
114+ if (BUILD_INTERNAL_DEPS)
115+ include_directories (
116+ SYSTEM
117+ # system includes
118+ deps/outcome
119+ ${TINY_CBOR_INCLUDE_DIRS}
120+ )
121+ endif ()
117122
118123add_subdirectory (core)
119124
You can’t perform that action at this time.
0 commit comments