Closed xuhancn closed 7 months ago
Why we avoid to use BUILD_SHARED_LIBS and add_library without STATIC/SHARED parameter. Please check the offical document Note part.
BUILD_SHARED_LIBS
add_library
STATIC/SHARED
Note
Additional, I write a test project to test this PR: https://github.com/xuhancn/sleef_cmake_example Turn on/off this line to control the build type. https://github.com/xuhancn/sleef_cmake_example/blob/main/CMakeLists.txt#L14
Static:
Shared:
Why we avoid to use
BUILD_SHARED_LIBS
andadd_library
withoutSTATIC/SHARED
parameter. Please check the offical documentNote
part.Additional, I write a test project to test this PR: https://github.com/xuhancn/sleef_cmake_example Turn on/off this line to control the build type. https://github.com/xuhancn/sleef_cmake_example/blob/main/CMakeLists.txt#L14
Static:
Shared: