Changeset 19224
- Timestamp:
- 09/08/18 20:05:09 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/CMakeLists.txt
r19221 r19224 15 15 # Note that if compilers are switched on the fly, 16 16 # the cache is deleted 17 18 #IF (NOT DEFINED CMAKE_C_COMPILER) 19 # SET(CMAKE_C_COMPILER "clang")# CACHE STRING "Choose the compiler (c++, g++, clang++)" FORCE) 20 #ENDIF() 21 # 22 #IF (NOT DEFINED CMAKE_CXX_COMPILER) 23 # SET(CMAKE_CXX_COMPILER "clang++")# CACHE STRING "Choose the compiler (c++, g++, clang++)" FORCE) 24 #ENDIF() 17 IF(NOT DEFINED CMAKE_C_COMPILER) 18 FIND_PROGRAM(CMAKE_C_COMPILER NAMES $ENV{CC} clang gcc cc PATHS ENV PATH NO_DEFAULT_PATH DOC "C Compiler") 19 ENDIF() 20 IF(NOT DEFINED CMAKE_CXX_COMPILER) 21 FIND_PROGRAM(CMAKE_CXX_COMPILER NAMES $ENV{CXX} clang++ g++ c++ PATHS ENV PATH NO_DEFAULT_PATH DOC "C++ Compiler") 22 ENDIF() 25 23 26 24 #SET(CMAKE_VERBOSE_MAKEFILE ON)
Note:
See TracChangeset
for help on using the changeset viewer.