Skip to content

Commit 80694f4

Browse files
committed
fix(orm): align installed dependency exports
1 parent 1e5c651 commit 80694f4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ set(_WARNINGS_GNU
3838
set(_WARNINGS_MSVC /W4 /permissive-)
3939

4040
# optional deps
41-
find_package(spdlog QUIET CONFIG)
41+
if (NOT VIX_LOGGING_DEPS_BUNDLED)
42+
find_package(spdlog QUIET CONFIG)
43+
endif()
4244

4345
# ------------------------------------------------------------------------------
4446
# Sources / Headers (ORM sugar only)
@@ -162,7 +164,7 @@ else()
162164
endif()
163165

164166
# deps / defines
165-
if (spdlog_FOUND)
167+
if (NOT VIX_LOGGING_DEPS_BUNDLED AND spdlog_FOUND)
166168
if (TARGET spdlog::spdlog_header_only)
167169
target_link_libraries(vix_orm PUBLIC spdlog::spdlog_header_only)
168170
elseif (TARGET spdlog::spdlog)

0 commit comments

Comments
 (0)