Skip to content

Commit

Permalink
cc cmake: do not warn when static libs are on by default
Browse files Browse the repository at this point in the history
commit_hash:25f3c7b816566b4424cf1d4ea1f869542007e8f2
  • Loading branch information
fdr400 committed Jan 27, 2025
1 parent adab557 commit f23ce54
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,13 @@ endif()
option(USERVER_USE_STATIC_LIBS "Tries to find all dependencies as static libraries" "${USERVER_USE_STATIC_LIBS_DEFAULT}")

if(USERVER_USE_STATIC_LIBS)
if(USERVER_USE_STATIC_LIBS_DEFAULT)
set(_use_static_log_level STATUS)
else()
set(_use_static_log_level WARNING)
endif()
message(
WARNING
${_use_static_log_level}
"USERVER_USE_STATIC_LIBS turned ON, prioritized to find static libraries. Not all dependencies may be taken into account and linkage may be broken")
endif()
include(UserverPreferStaticLibs)
Expand Down

0 comments on commit f23ce54

Please sign in to comment.