We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when USE_LIBRARY is true, we can change some varible to make shared or static lib
when USE_LIBRARY is true, we can only make shared lib
option(SHARED_LIB "Compile shared lib" ON)
cmake_dependent_option( MAKE_STATIC_LIBRARY "Compile sources into a static library" ON "USE_LIBRARY;NOT SHARED_LIB" OFF )
cmake_dependent_option( MAKE_SHARED_LIBRARY "Compile sources into a shared library" ON "USE_LIBRARY;SHARED_LIB" OFF )
any
The text was updated successfully, but these errors were encountered:
Hi and thanks for your interest in this project. This bug slipped though! Thanks for reporting it and proposing a solution.
Sorry, something went wrong.
No branches or pull requests
Expected Behavior
when USE_LIBRARY is true, we can change some varible to make shared or static lib
Current Behavior
when USE_LIBRARY is true, we can only make shared lib
Possible Solution
option(SHARED_LIB "Compile shared lib" ON)
cmake_dependent_option(
MAKE_STATIC_LIBRARY "Compile sources into a static library"
ON "USE_LIBRARY;NOT SHARED_LIB" OFF
)
cmake_dependent_option(
MAKE_SHARED_LIBRARY "Compile sources into a shared library"
ON "USE_LIBRARY;SHARED_LIB" OFF
)
Steps to Reproduce (for bugs)
any
Context
any
Your Environment
any
The text was updated successfully, but these errors were encountered: