aboutsummaryrefslogtreecommitdiff
path: root/ports/rttr
diff options
context:
space:
mode:
Diffstat (limited to 'ports/rttr')
-rw-r--r--ports/rttr/portfile.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/rttr/portfile.cmake b/ports/rttr/portfile.cmake
index 2c2c7e863..a85a2b157 100644
--- a/ports/rttr/portfile.cmake
+++ b/ports/rttr/portfile.cmake
@@ -23,9 +23,9 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
-if(UNIX)
+if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux" OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin")
vcpkg_fixup_cmake_targets(CONFIG_PATH share/rttr/cmake)
-elseif(WIN32)
+elseif(NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
else()
message(FATAL_ERROR "RTTR does not support this platform")