Changeset 11076 for code/trunk/cmake
- Timestamp:
- Jan 19, 2016, 1:53:36 PM (9 years ago)
- Location:
- code/trunk/cmake
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/cmake/CompilerConfig.cmake
r8351 r11076 27 27 28 28 # Configure the compiler specific build options 29 IF( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUC)29 IF("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") 30 30 INCLUDE(CompilerConfigGCC) 31 ELSEIF( MSVC)31 ELSEIF("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC") 32 32 INCLUDE(CompilerConfigMSVC) 33 ELSEIF("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") 34 INCLUDE(CompilerConfigClang) 33 35 ELSE() 34 36 MESSAGE(STATUS "Warning: Your compiler is not officially supported.") -
code/trunk/cmake/tools/PrecompiledHeaderFiles.cmake
r10268 r11076 96 96 ENDFOREACH(_file) 97 97 98 ELSEIF(CMAKE_COMPILER_IS_GNU )98 ELSEIF(CMAKE_COMPILER_IS_GNU OR CMAKE_COMPILER_IS_CLANG) 99 99 100 # Append the gch-dir to make sure gccfinds the pch file100 # Append the gch-dir to make sure compiler finds the pch file 101 101 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) 102 102 … … 122 122 123 123 FUNCTION(PRECOMPILED_HEADER_FILES_POST_TARGET _target_name) 124 # This macro is only necessary for GCC 125 IF(CMAKE_COMPILER_IS_GNU )124 # This macro is only necessary for GCC and Clang 125 IF(CMAKE_COMPILER_IS_GNU OR CMAKE_COMPILER_IS_CLANG) 126 126 127 127 SET(_pch_file "${CMAKE_CURRENT_BINARY_DIR}/${_pch_header_filename}.gch") … … 156 156 ADD_DEPENDENCIES(${_target_name} ${_target_name}PrecompiledHeader) 157 157 158 ENDIF(CMAKE_COMPILER_IS_GNU )158 ENDIF(CMAKE_COMPILER_IS_GNU OR CMAKE_COMPILER_IS_CLANG) 159 159 ENDFUNCTION(PRECOMPILED_HEADER_FILES_POST_TARGET)
Note: See TracChangeset
for help on using the changeset viewer.