aboutsummaryrefslogtreecommitdiff
path: root/cmake/scripts
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2022-06-14 21:04:50 +1000
committerfuzzard <fuzzard@kodi.tv>2022-06-17 22:22:43 +1000
commit3db88ec9aa0027e5b874d761ae207845938876ce (patch)
tree1fbfdf6f9d02433796c55557d86c4c3a10c47ab6 /cmake/scripts
parentf68818df375e875f93d05adbb2422b8eb8697f1b (diff)
[cmake] split flatbuffers buildtool (flatc) and target headers find modules
Diffstat (limited to 'cmake/scripts')
-rw-r--r--cmake/scripts/windows/ArchSetup.cmake6
-rw-r--r--cmake/scripts/windowsstore/ArchSetup.cmake6
2 files changed, 12 insertions, 0 deletions
diff --git a/cmake/scripts/windows/ArchSetup.cmake b/cmake/scripts/windows/ArchSetup.cmake
index 0c432a2daf..29f9f1c731 100644
--- a/cmake/scripts/windows/ArchSetup.cmake
+++ b/cmake/scripts/windows/ArchSetup.cmake
@@ -7,6 +7,12 @@ if(CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION VERSION_LESS VS_MINIMUM_SDK_VERSION)
"INFO: Windows SDKs can be installed from the Visual Studio installer.")
endif()
+# -------- Host Settings ---------
+
+set(_gentoolset ${CMAKE_GENERATOR_TOOLSET})
+string(REPLACE "host=" "" HOSTTOOLSET ${_gentoolset})
+unset(_gentoolset)
+
# -------- Architecture settings ---------
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
diff --git a/cmake/scripts/windowsstore/ArchSetup.cmake b/cmake/scripts/windowsstore/ArchSetup.cmake
index f0d6844e99..209bb9f56b 100644
--- a/cmake/scripts/windowsstore/ArchSetup.cmake
+++ b/cmake/scripts/windowsstore/ArchSetup.cmake
@@ -7,6 +7,12 @@ if(CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION VERSION_LESS VS_MINIMUM_SDK_VERSION)
"INFO: Windows SDKs can be installed from the Visual Studio installer.")
endif()
+# -------- Host Settings ---------
+
+set(_gentoolset ${CMAKE_GENERATOR_TOOLSET})
+string(REPLACE "host=" "" HOSTTOOLSET ${_gentoolset})
+unset(_gentoolset)
+
# -------- Architecture settings ---------
check_symbol_exists(_X86_ "Windows.h" _X86_)