mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-29 15:16:05 +00:00
Changed: #1177 VS 2010 does not work under CMake
This commit is contained in:
commit
6928fdc965
1 changed files with 9 additions and 2 deletions
|
@ -101,8 +101,15 @@ IF(WIN32)
|
||||||
# convert IDE fullpath to VC++ path
|
# convert IDE fullpath to VC++ path
|
||||||
STRING(REGEX REPLACE "Common7/IDE/.+" "VC" VC_DIR ${CMAKE_MAKE_PROGRAM})
|
STRING(REGEX REPLACE "Common7/IDE/.+" "VC" VC_DIR ${CMAKE_MAKE_PROGRAM})
|
||||||
ELSE(${CMAKE_MAKE_PROGRAM} MATCHES "Common7")
|
ELSE(${CMAKE_MAKE_PROGRAM} MATCHES "Common7")
|
||||||
|
IF(${CMAKE_CXX_COMPILER} MATCHES "VC")
|
||||||
# convert compiler fullpath to VC++ path
|
# convert compiler fullpath to VC++ path
|
||||||
STRING(REGEX REPLACE "VC/bin/.+" "VC" VC_DIR ${CMAKE_CXX_COMPILER})
|
STRING(REGEX REPLACE "VC/bin/.+" "VC" VC_DIR ${CMAKE_CXX_COMPILER})
|
||||||
|
ELSE(${CMAKE_CXX_COMPILER} MATCHES "VC")
|
||||||
|
# Hack for Visual C++ 2010
|
||||||
|
GET_FILENAME_COMPONENT(VC_ROOT_PATH "[HKEY_CURRENT_USER\\Software\\Microsoft\\VCExpress\\10.0_Config;InstallDir]" ABSOLUTE)
|
||||||
|
# convert IDE fullpath to VC++ path
|
||||||
|
STRING(REGEX REPLACE "Common7/.*" "VC" VC_DIR ${VC_ROOT_PATH})
|
||||||
|
ENDIF(${CMAKE_CXX_COMPILER} MATCHES "VC")
|
||||||
ENDIF(${CMAKE_MAKE_PROGRAM} MATCHES "Common7")
|
ENDIF(${CMAKE_MAKE_PROGRAM} MATCHES "Common7")
|
||||||
|
|
||||||
IF(WITH_MFC)
|
IF(WITH_MFC)
|
||||||
|
|
Loading…
Reference in a new issue