diff --git a/src/cpp/CMakeLists.txt b/src/cpp/CMakeLists.txt index 53b987cfeb8..15922c91b04 100644 --- a/src/cpp/CMakeLists.txt +++ b/src/cpp/CMakeLists.txt @@ -514,7 +514,7 @@ elseif(BUILD_SHARED_LIBS) unset(OLD_CMAKE_REQUIRED_FLAGS) if(HAS_VERSION_SCRIPT_SUPPORT) message(STATUS "Using linker version script to select exported symbols") - target_link_options(${PROJECT_NAME} ${PRIVACY} ${VERSION_SCRIPT_SUPPORT_FLAGS}) + target_link_options(${PROJECT_NAME} PRIVATE ${VERSION_SCRIPT_SUPPORT_FLAGS}) endif() endif()