DynamoRIO / DynamoRIO/dynamorio
CMake (Win64): problems finding message compiler
- Dominant language
- C
- Stars
- 3.2k
- Forks
- 629
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 31
Description
_From [meph...@gmail.com](https://code.google.com/u/102287220754221353246/) on February 01, 2013 13:21:03_
I tried to build trunk on Windows x64 with Visual Studio Express 2012 and SDK 7.1, and ran into the problem when CMake picks up Cygwin's Midnight Commander instead of the real message compiler.
The following patch fixed this problem:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 64a51af..415ac7d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -506,13 +506,16 @@ else (UNIX)
# this path is only present for 2008+, but we currently require PATH to
# be set up anyway
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)
set(sdk_bindir "${sdk_dir}/bin/x64")
- set(kit_bindir "${kit_dir}/bin/x64")
else (X64)
set(sdk_bindir "${sdk_dir}/bin")
- set(kit_bindir "${kit_dir}/bin/x86")
endif (X64)
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")
if (NOT CMAKE_MC_COMPILER)
message(FATAL_ERROR "message compiler not found: required to build")
_Original issue: http://code.google.com/p/dynamorio/issues/detail?id=1065_
Contributor guide
Assessment
This issue has not been assessed yet.