Ignore:
Timestamp:
09/08/18 20:05:09 (6 years ago)
Author:
tbretz
Message:
As a default use 'clang', 'gcc' and 'cc'
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/CMakeLists.txt

    r19221 r19224  
    1515# Note that if compilers are switched on the fly,
    1616# 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()
     17IF(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")
     19ENDIF()
     20IF(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")
     22ENDIF()
    2523
    2624#SET(CMAKE_VERBOSE_MAKEFILE ON)
Note: See TracChangeset for help on using the changeset viewer.