mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
CMakeLists.txt: use Windows Kit as alternative for message compiler
This commit is contained in:
committed by
Roger Meier
parent
db0999b2d6
commit
a7247c7d75
@@ -6,13 +6,16 @@ if (WIN32)
|
|||||||
# this path is only present for 2008+, but we currently require PATH to
|
# this path is only present for 2008+, but we currently require PATH to
|
||||||
# be set up anyway
|
# be set up anyway
|
||||||
get_filename_component(sdk_dir "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows;CurrentInstallFolder]" REALPATH)
|
get_filename_component(sdk_dir "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows;CurrentInstallFolder]" REALPATH)
|
||||||
|
get_filename_component(kit_dir "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows Kits\\Installed Roots;KitsRoot]" REALPATH)
|
||||||
if (X64)
|
if (X64)
|
||||||
set(sdk_bindir "${sdk_dir}/bin/x64")
|
set(sdk_bindir "${sdk_dir}/bin/x64")
|
||||||
|
set(kit_bindir "${kit_dir}/bin/x64")
|
||||||
else (X64)
|
else (X64)
|
||||||
set(sdk_bindir "${sdk_dir}/bin")
|
set(sdk_bindir "${sdk_dir}/bin")
|
||||||
|
set(kit_bindir "${kit_dir}/bin/x86")
|
||||||
endif (X64)
|
endif (X64)
|
||||||
endif ()
|
endif ()
|
||||||
find_program(CMAKE_MC_COMPILER mc.exe HINTS "${sdk_bindir}"
|
find_program(CMAKE_MC_COMPILER mc.exe HINTS "${sdk_bindir}" "${kit_bindir}"
|
||||||
DOC "path to message compiler")
|
DOC "path to message compiler")
|
||||||
if (NOT CMAKE_MC_COMPILER)
|
if (NOT CMAKE_MC_COMPILER)
|
||||||
message(FATAL_ERROR "message compiler not found: required to build")
|
message(FATAL_ERROR "message compiler not found: required to build")
|
||||||
|
|||||||
Reference in New Issue
Block a user