Skip to content

Commit

Permalink
fmt: check if target already exists (#1051)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsavulescu committed Jul 3, 2023
1 parent ce25655 commit 2135b19
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ if(NOT TARGET CLI11::CLI11)
endif()
# For the moment do not try and use an external Eigen.
cpp_cc_git_submodule(eigen)
cpp_cc_git_submodule(fmt BUILD PACKAGE fmt REQUIRED)
# We could have fmt incoming from NEURON
if(NOT TARGET fmt)
cpp_cc_git_submodule(fmt BUILD 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.
if(NMODL_3RDPARTY_USE_FMT)
Expand Down

0 comments on commit 2135b19

Please sign in to comment.