diff --git a/CMakeLists.txt b/CMakeLists.txt index 0053fd90db..4b628c4d3d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,7 +105,7 @@ endif() cpp_cc_git_submodule(eigen) # We could have fmt incoming from NEURON if(NOT TARGET fmt) - cpp_cc_git_submodule(fmt BUILD PACKAGE fmt REQUIRED) + cpp_cc_git_submodule(fmt BUILD EXCLUDE_FROM_ALL PACKAGE fmt REQUIRED) endif() # If we're building from the submodule, make sure we pass -fPIC so that we can link the code into a # shared library later. @@ -133,7 +133,7 @@ endif() cpp_cc_git_submodule(spdlog BUILD PACKAGE spdlog REQUIRED) if(NMODL_ENABLE_BACKWARD) - cpp_cc_git_submodule(backward BUILD PACKAGE backward REQUIRED) + cpp_cc_git_submodule(backward BUILD EXCLUDE_FROM_ALL PACKAGE backward REQUIRED) endif() # ============================================================================= diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7a81895ff3..999c5d70d2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -26,6 +26,7 @@ include_directories(${PYBIND11_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS}) add_executable(nmodl main.cpp) target_link_libraries( nmodl +PRIVATE CLI11::CLI11 printer codegen