From 74bc34f2f250daa8b668f21fc3ec7a2f95c7770e Mon Sep 17 00:00:00 2001 From: Miguel Company Date: Wed, 22 Dec 2021 07:06:07 +0100 Subject: [PATCH] Fix #2370 Signed-off-by: Miguel Company --- src/cpp/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()