From ad4142b08fbb52ca8c8c0551d8c596d532631cfd Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 27 Sep 2010 23:25:40 +0200 Subject: [PATCH] Fixed: Use of CMAKE_CXX_COMPILER instead of CMAKE_MAKE_PROGRAM because Jom is not installed in VC++ directory --- code/CMakeLists.txt | 2 +- code/CMakeModules/FindCustomMFC.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index c391946d7..4d8efb413 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -109,7 +109,7 @@ IF(WITH_STLPORT) IF(WIN32) FIND_PACKAGE(WindowsSDK REQUIRED) # convert IDE fullpath to include path - STRING(REGEX REPLACE "Common7/IDE/.+" "VC/include" VC_INCLUDE_DIR ${CMAKE_MAKE_PROGRAM}) + STRING(REGEX REPLACE "VC/bin/.+" "VC/include" VC_INCLUDE_DIR ${CMAKE_CXX_COMPILER}) # use VC++ and Windows SDK include paths INCLUDE_DIRECTORIES(${VC_INCLUDE_DIR} ${WINSDK_INCLUDE_DIR}) ENDIF(WIN32) diff --git a/code/CMakeModules/FindCustomMFC.cmake b/code/CMakeModules/FindCustomMFC.cmake index a8ae3e443..553f69b7c 100644 --- a/code/CMakeModules/FindCustomMFC.cmake +++ b/code/CMakeModules/FindCustomMFC.cmake @@ -11,7 +11,7 @@ SET(CUSTOM_MFC_DIR FALSE) # If using STLport and MFC have been found, remember its directory IF(WITH_STLPORT AND MFC_FOUND) - STRING(REGEX REPLACE "Common7/IDE/.+" "VC/atlmfc" MFC_STANDARD_DIR ${CMAKE_MAKE_PROGRAM}) + STRING(REGEX REPLACE "VC/bin/.+" "VC/atlmfc" VC_INCLUDE_DIR ${CMAKE_CXX_COMPILER}) ENDIF(WITH_STLPORT AND MFC_FOUND) # If using STLport or MFC haven't been found, search for afxwin.h