[CMake] Fix use of BUILD_SHARED_LIBS
the option is named BUILD_SHARED_LIBS and not CMAKE_BUILD_SHARED_LIBS
This commit is contained in:
parent
6e5307c037
commit
c23dc3ba9d
@ -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
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ClientConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ClientConfigVersion.cmake
|
||||||
DESTINATION ${FREERDP_CLIENT_CMAKE_INSTALL_DIR})
|
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})
|
install(EXPORT FreeRDP-ClientTargets DESTINATION ${FREERDP_CLIENT_CMAKE_INSTALL_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
@ -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
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ServerConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ServerConfigVersion.cmake
|
||||||
DESTINATION ${FREERDP_SERVER_CMAKE_INSTALL_DIR})
|
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})
|
install(EXPORT FreeRDP-ServerTargets DESTINATION ${FREERDP_SERVER_CMAKE_INSTALL_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
@ -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
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ProxyConfig.cmake ${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ProxyConfigVersion.cmake
|
||||||
DESTINATION ${FREERDP_PROXY_CMAKE_INSTALL_DIR})
|
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})
|
install(EXPORT FreeRDP-ProxyTargets DESTINATION ${FREERDP_PROXY_CMAKE_INSTALL_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -377,6 +377,6 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ShadowConfig.cmake
|
|||||||
${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ShadowConfigVersion.cmake
|
${CMAKE_CURRENT_BINARY_DIR}/FreeRDP-ShadowConfigVersion.cmake
|
||||||
DESTINATION ${FREERDP_SERVER_CMAKE_INSTALL_DIR})
|
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})
|
install(EXPORT FreeRDP-ShadowTargets DESTINATION ${FREERDP_SERVER_CMAKE_INSTALL_DIR})
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user