Fixed: Use of CMAKE_CXX_COMPILER instead of CMAKE_MAKE_PROGRAM because Jom is not installed in VC++ directory
This commit is contained in:
parent
b5257a0f94
commit
959dc8e3c4
2 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,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/.+" "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
|
# use VC++ and Windows SDK include paths
|
||||||
INCLUDE_DIRECTORIES(${VC_INCLUDE_DIR} ${WINSDK_INCLUDE_DIR})
|
INCLUDE_DIRECTORIES(${VC_INCLUDE_DIR} ${WINSDK_INCLUDE_DIR})
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
|
@ -11,7 +11,7 @@ SET(CUSTOM_MFC_DIR FALSE)
|
||||||
|
|
||||||
# If using STLport and MFC have been found, remember its directory
|
# If using STLport and MFC have been found, remember its directory
|
||||||
IF(WITH_STLPORT AND MFC_FOUND)
|
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)
|
ENDIF(WITH_STLPORT AND MFC_FOUND)
|
||||||
|
|
||||||
# If using STLport or MFC haven't been found, search for afxwin.h
|
# If using STLport or MFC haven't been found, search for afxwin.h
|
||||||
|
|
Loading…
Reference in a new issue