diff --git a/CMakeLists.txt b/CMakeLists.txt index 38a98622..21b34f2c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,7 +88,7 @@ target_link_libraries(rlottie "${CMAKE_THREAD_LIBS_INIT}" ) -if (NOT APPLE AND NOT WIN32) +if (NOT APPLE AND NOT WIN32 AND BUILD_SHARED_LIBS) target_link_libraries(rlottie PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/rlottie.expmap"