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 @@ -41,6 +41,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
4141option (TESTING "Build tests" ON )
4242option (TESTING_PROOFS "Build proofs tests" OFF )
4343option (TESTING_ACTORS "Build actors tests" OFF )
44+ option (BUILD_INTERNAL_DEPS "Build internal dependencies from git submodules" ON )
4445option (CLANG_FORMAT "Enable clang-format target" ON )
4546option (CLANG_TIDY "Enable clang-tidy checks during compilation" OFF )
4647option (COVERAGE "Enable generation of coverage info" OFF )
@@ -103,20 +104,24 @@ if (CLANG_FORMAT)
103104 include (cmake/clang-format.cmake)
104105endif ()
105106
106- add_subdirectory (deps)
107+ if (BUILD_INTERNAL_DEPS)
108+ add_subdirectory (deps)
109+ endif ()
107110
108111include_directories (
109112 # project includes
110113 ${PROJECT_SOURCE_DIR} /core
111114 ${PROJECT_SOURCE_DIR} /libs
112115)
113116
114- include_directories (
115- SYSTEM
116- # system includes
117- deps/indicators/include
118- deps/libsecp256k1/include
119- )
117+ if (BUILD_INTERNAL_DEPS)
118+ include_directories (
119+ SYSTEM
120+ # system includes
121+ deps/indicators/include
122+ deps/libsecp256k1/include
123+ )
124+ endif ()
120125
121126if (APPLE )
122127 include_directories (/usr/local/include )
You can’t perform that action at this time.
0 commit comments