File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1717endif ()
1818
1919find_package (spdlog CONFIG REQUIRED)
20+ find_package (Threads REQUIRED)
2021
2122# For some reasons, using target_compile_definitions does not set the definitions properly
2223add_compile_definitions (
@@ -33,15 +34,21 @@ add_library(mamba::libmamba-spdlog ALIAS libmamba-spdlog)
3334
3435target_include_directories (libmamba-spdlog INTERFACE include /)
3536
36- target_link_libraries (libmamba-spdlog
37- INTERFACE
37+ target_link_libraries (libmamba-spdlog
38+ INTERFACE
3839 ${libmamba_target}
3940 # Since conda-forge spdlog is built with a bundled version of fmt we use the header
4041 # only version to avoid chasing after the correct fmt version matching the one used
41- # in the bundle
42+ # in the bundle.
4243 spdlog::spdlog_header_only
44+
45+ # We need the threading facilities available whatever the user use.
46+ # This should have been part of depending on spdlog but for some reason it's
47+ # not made available automatically.
48+ Threads::Threads
4349)
4450
51+
4552mamba_target_add_compile_warnings(libmamba-spdlog WARNING_AS_ERROR ${MAMBA_WARNING_AS_ERROR} )
4653
4754target_compile_features (libmamba-spdlog INTERFACE cxx_std_20)
You can’t perform that action at this time.
0 commit comments