Changeset 3036
- Timestamp:
- 04/01/15 20:51:15 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CMakeLists.txt
r3035 r3036 7 7 8 8 # options 9 option (CXX11 "Compile as C++11 if possible" NO) 10 9 11 option( USE_LIBCASACORE 10 12 "set ON to use libcasacore.so instead of libcasa_*.so" … … 108 110 if( HAS_GCC_FORTRAN_RULES ) 109 111 set( CMAKE_C_FLAGS "-fcx-fortran-rules ${CMAKE_C_FLAGS}" ) 112 endif() 113 114 # Detect if the compiler supports C++11 if we want to use it. 115 if (CXX11) 116 if ((CMAKE_COMPILER_IS_GNUCXX AND NOT ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 4.6) OR 117 (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 4.3)) 118 set(DEFAULT_CXX_FLAGS "${DEFAULT_CXX_FLAGS} -std=c++11 -DCXX11") 119 else() 120 option(CXX11 "" NO) 121 endif() 110 122 endif() 111 123
Note:
See TracChangeset
for help on using the changeset viewer.