mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Changed: Works for C compilers too
This commit is contained in:
parent
3faeb82290
commit
5a2be0659b
1 changed files with 7 additions and 2 deletions
|
@ -93,8 +93,13 @@ IF(NOT VC_DIR)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF(NOT VC_DIR)
|
IF(NOT VC_DIR)
|
||||||
STRING(REGEX REPLACE "/bin/.+" "" VC_DIR ${CMAKE_CXX_COMPILER})
|
IF(CMAKE_CXX_COMPILER)
|
||||||
ENDIF(NOT VC_DIR)
|
SET(_COMPILER ${CMAKE_CXX_COMPILER})
|
||||||
|
ELSE()
|
||||||
|
SET(_COMPILER ${CMAKE_C_COMPILER})
|
||||||
|
ENDIF()
|
||||||
|
STRING(REGEX REPLACE "/bin/.+" "" VC_DIR ${_COMPILER})
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
SET(VC_INCLUDE_DIR "${VC_DIR}/include")
|
SET(VC_INCLUDE_DIR "${VC_DIR}/include")
|
||||||
SET(VC_INCLUDE_DIRS ${VC_INCLUDE_DIR})
|
SET(VC_INCLUDE_DIRS ${VC_INCLUDE_DIR})
|
||||||
|
|
Loading…
Reference in a new issue