Changeset 11076 for code/trunk/cmake/tools
- Timestamp:
- Jan 19, 2016, 1:53:36 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.