Fixed: Parsing of CMAKE_MAKE_PROGRAM

This commit is contained in:
kervala 2010-09-16 13:05:41 +02:00
parent 695a5cdf83
commit 448b875082

View file

@ -110,7 +110,7 @@ IF(WITH_STLPORT)
IF(WIN32) IF(WIN32)
FIND_PACKAGE(WindowsSDK REQUIRED) FIND_PACKAGE(WindowsSDK REQUIRED)
# convert IDE fullpath to include path # 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 # use VC++ and Windows SDK include paths
INCLUDE_DIRECTORIES(${VCINCLUDE_DIR} ${WINSDK_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${VCINCLUDE_DIR} ${WINSDK_INCLUDE_DIR})
# deactivate all global include paths # deactivate all global include paths