From 3b9420f950f128eb25599ae33ba3163f7c9129fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Thu, 4 Jul 2024 09:59:34 +0200 Subject: [PATCH] Differentiate x86 and x64 targets for USVFS. --- src/usvfs_dll/CMakeLists.txt | 7 ++++--- src/usvfs_proxy/CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/usvfs_dll/CMakeLists.txt b/src/usvfs_dll/CMakeLists.txt index 907510b..8a0ff4f 100644 --- a/src/usvfs_dll/CMakeLists.txt +++ b/src/usvfs_dll/CMakeLists.txt @@ -47,8 +47,9 @@ set_target_properties(usvfs_dll RUNTIME_OUTPUT_DIRECTORY_DEBUG ${USVFS_LIBDIR} RUNTIME_OUTPUT_DIRECTORY_RELEASE ${USVFS_LIBDIR}) -install(TARGETS usvfs_dll EXPORT usvfsTargets FILE_SET HEADERS) -install(EXPORT usvfsTargets - FILE usvfsTargets.cmake +install(TARGETS usvfs_dll EXPORT usvfs${ARCH_POSTFIX}Targets FILE_SET HEADERS) +install(EXPORT usvfs${ARCH_POSTFIX}Targets + FILE usvfs${ARCH_POSTFIX}Targets.cmake + NAMESPACE usvfs${ARCH_POSTFIX}:: DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/usvfs ) diff --git a/src/usvfs_proxy/CMakeLists.txt b/src/usvfs_proxy/CMakeLists.txt index 6ce21c9..d7abf22 100644 --- a/src/usvfs_proxy/CMakeLists.txt +++ b/src/usvfs_proxy/CMakeLists.txt @@ -12,4 +12,4 @@ set_target_properties(usvfs_proxy RUNTIME_OUTPUT_DIRECTORY_RELEASE ${USVFS_BINDIR} ) -install(TARGETS usvfs_proxy) +install(TARGETS usvfs_proxy EXPORT usvfs${ARCH_POSTFIX}Targets)