You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe if BUILD_SHARED_LIBS is unset at this point, it will become OFF. So this isn't necessarily a problem.
I'm not sure what the best practice here is -- because in theory someone might have already set that variable if we are included as a sub project.
I think you should default it to off for clarity.
Since it’s a cache variable… it’s designed to be overridden by command line, or option passing (fetch content)… and cache variables are shadowed by normal variables if there is some add_subdirectory inclusion.
nng/cmake/NNGOptions.cmake
Line 21 in ec714f0
According to this, CMake does not define a default.
It seems like this project should be setting this to FALSE or OFF.
https://cmake.org/cmake/help/latest/variable/BUILD_SHARED_LIBS.html
The text was updated successfully, but these errors were encountered: