We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 995ba48 commit ad0505aCopy full SHA for ad0505a
cpp-library.cmake
@@ -75,7 +75,10 @@ function(cpp_library_setup)
75
set(ARG_REQUIRES_CPP_VERSION 17)
76
endif()
77
78
- # Check for global FORCE_INIT option (can be set via -DCPP_LIBRARY_FORCE_INIT=ON)
+ # Set default for FORCE_INIT (can be overridden via -DCPP_LIBRARY_FORCE_INIT=ON)
79
+ if(NOT DEFINED ARG_FORCE_INIT)
80
+ set(ARG_FORCE_INIT FALSE)
81
+ endif()
82
if(CPP_LIBRARY_FORCE_INIT)
83
set(ARG_FORCE_INIT TRUE)
84
0 commit comments