We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 94da4aa + 8e6bd15 commit 637457bCopy full SHA for 637457b
1 file changed
CMakeLists.txt
@@ -201,11 +201,19 @@ if (NOT _VIX_FMT_TARGET)
201
)
202
endif()
203
204
-target_link_libraries(vix_utils
205
- PUBLIC
206
- ${_VIX_SPDLOG_TARGET}
207
- ${_VIX_FMT_TARGET}
208
-)
+if (VIX_HEADER_ONLY)
+ target_link_libraries(vix_utils
+ INTERFACE
+ ${_VIX_SPDLOG_TARGET}
+ ${_VIX_FMT_TARGET}
209
+ )
210
+else()
211
212
+ PUBLIC
213
214
215
216
+endif()
217
218
if (VIX_HEADER_ONLY)
219
target_compile_definitions(vix_utils INTERFACE SPDLOG_FMT_EXTERNAL=1)
0 commit comments