mirror of
https://github.com/glest/glest-source.git
synced 2025-09-02 12:32:34 +02:00
- experimental CLANG compile support
This commit is contained in:
@@ -18,6 +18,10 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/mk/cmake/Modules)
|
|||||||
|
|
||||||
MESSAGE(STATUS "Build type for this compile will be: ${CMAKE_BUILD_TYPE}")
|
MESSAGE(STATUS "Build type for this compile will be: ${CMAKE_BUILD_TYPE}")
|
||||||
|
|
||||||
|
IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||||
|
SET(CMAKE_COMPILER_IS_GNUCXX "YES")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
FUNCTION(Subversion_IS_WC FOLDER RESULT_VAR)
|
FUNCTION(Subversion_IS_WC FOLDER RESULT_VAR)
|
||||||
IF(Subversion_FOUND)
|
IF(Subversion_FOUND)
|
||||||
|
|
||||||
@@ -102,7 +106,9 @@ endif()
|
|||||||
|
|
||||||
## Compiler flags
|
## Compiler flags
|
||||||
IF(CMAKE_COMPILER_IS_GNUCXX OR MINGW)
|
IF(CMAKE_COMPILER_IS_GNUCXX OR MINGW)
|
||||||
IF(CMAKE_COMPILER_IS_GNUCXX)
|
IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||||
|
MESSAGE(STATUS "Detected CLANG Compiler...")
|
||||||
|
ELSEIF(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
MESSAGE(STATUS "Detected GNUC Compiler...")
|
MESSAGE(STATUS "Detected GNUC Compiler...")
|
||||||
ELSEIF(MINGW)
|
ELSEIF(MINGW)
|
||||||
MESSAGE(STATUS "Detected MINGW Compiler...")
|
MESSAGE(STATUS "Detected MINGW Compiler...")
|
||||||
|
Reference in New Issue
Block a user