From c23dc3ba9d9f6166b8bd853662737245d3d18323 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Fri, 10 Mar 2023 11:04:17 +0100 Subject: [PATCH] [CMake] Fix use of BUILD_SHARED_LIBS the option is named BUILD_SHARED_LIBS and not CMAKE_BUILD_SHARED_LIBS --- client/CMakeLists.txt | 2 +- server/CMakeLists.txt | 2 +- server/proxy/CMakeLists.txt | 2 +- server/shadow/CMakeLists.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 36bb2b8bc..e23ab35f6 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -107,6 +107,6 @@ write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ClientConfi install(FILES ${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ClientConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ClientConfigVersion.cmake DESTINATION ${FREERDP_CLIENT_CMAKE_INSTALL_DIR}) -if (CMAKE_BUILD_SHARED_LIBS) +if (BUILD_SHARED_LIBS) install(EXPORT FreeRDP-ClientTargets DESTINATION ${FREERDP_CLIENT_CMAKE_INSTALL_DIR}) endif() diff --git a/server/CMakeLists.txt b/server/CMakeLists.txt index 02770ca1f..b8943ad77 100644 --- a/server/CMakeLists.txt +++ b/server/CMakeLists.txt @@ -90,6 +90,6 @@ write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ServerConfi install(FILES ${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ServerConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ServerConfigVersion.cmake DESTINATION ${FREERDP_SERVER_CMAKE_INSTALL_DIR}) -if (CMAKE_BUILD_SHARED_LIBS) +if (BUILD_SHARED_LIBS) install(EXPORT FreeRDP-ServerTargets DESTINATION ${FREERDP_SERVER_CMAKE_INSTALL_DIR}) endif() diff --git a/server/proxy/CMakeLists.txt b/server/proxy/CMakeLists.txt index 10875811d..ba881d86e 100644 --- a/server/proxy/CMakeLists.txt +++ b/server/proxy/CMakeLists.txt @@ -100,7 +100,7 @@ write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ProxyConfig install(FILES ${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ProxyConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ProxyConfigVersion.cmake DESTINATION ${FREERDP_PROXY_CMAKE_INSTALL_DIR}) -if (CMAKE_BUILD_SHARED_LIBS) +if (BUILD_SHARED_LIBS) install(EXPORT FreeRDP-ProxyTargets DESTINATION ${FREERDP_PROXY_CMAKE_INSTALL_DIR}) endif() diff --git a/server/shadow/CMakeLists.txt b/server/shadow/CMakeLists.txt index 8cb750305..0a6693a54 100644 --- a/server/shadow/CMakeLists.txt +++ b/server/shadow/CMakeLists.txt @@ -377,6 +377,6 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ShadowConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ShadowConfigVersion.cmake DESTINATION ${FREERDP_SERVER_CMAKE_INSTALL_DIR}) -if (CMAKE_BUILD_SHARED_LIBS) +if (BUILD_SHARED_LIBS) install(EXPORT FreeRDP-ShadowTargets DESTINATION ${FREERDP_SERVER_CMAKE_INSTALL_DIR}) endif()