From 92580e02399b6c291bdd32d8fade1a8af9fd83d6 Mon Sep 17 00:00:00 2001 From: kervala Date: Thu, 16 Sep 2010 13:05:41 +0200 Subject: [PATCH] Fixed: Parsing of CMAKE_MAKE_PROGRAM --- code/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index 5581dc326..7a099dc86 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -110,7 +110,7 @@ IF(WITH_STLPORT) IF(WIN32) FIND_PACKAGE(WindowsSDK REQUIRED) # convert IDE fullpath to include path - STRING(REGEX REPLACE "Common7/IDE/[A-Za-z]+\\.exe" "VC/include" VCINCLUDE_DIR ${CMAKE_MAKE_PROGRAM}) + STRING(REGEX REPLACE "Common7/IDE/.+" "VC/include" VCINCLUDE_DIR ${CMAKE_MAKE_PROGRAM}) # use VC++ and Windows SDK include paths INCLUDE_DIRECTORIES(${VCINCLUDE_DIR} ${WINSDK_INCLUDE_DIR}) # deactivate all global include paths