Open hanxiatu-fc opened 5 years ago
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
Hi and thanks for your interest in this project. This bug slipped though! Thanks for reporting it and proposing a solution.
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