Changeset 5963 for code/trunk/cmake/SourceFileUtilities.cmake
- Timestamp:
- Oct 18, 2009, 11:39:32 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/cmake/SourceFileUtilities.cmake
r5929 r5963 48 48 ENDIF() 49 49 IF(NOT DISABLE_COMPILATIONS) 50 SET(_compilation_file ${CMAKE_CURRENT_BINARY_DIR}/${_compilation_name}) 50 51 SET(_include_string) 51 52 FOREACH(_file2 ${_compilation}) 52 53 SET(_include_string "${_include_string}#include \"${_file2}\"\n") 53 54 ENDFOREACH(_file2) 54 IF(EXISTS ${CMAKE_CURRENT_BINARY_DIR}/${_compilation_name})55 FILE(READ ${ CMAKE_CURRENT_BINARY_DIR}/${_compilation_name} _include_string_file)55 IF(EXISTS ) 56 FILE(READ ${_compilation_file} _include_string_file) 56 57 ENDIF() 57 58 IF(NOT _include_string STREQUAL "${_include_string_file}") 58 FILE(WRITE ${ CMAKE_CURRENT_BINARY_DIR}/${_compilation_name} "${_include_string}")59 FILE(WRITE ${_compilation_file} "${_include_string}") 59 60 ENDIF() 60 LIST(APPEND _fullpath_sources ${CMAKE_CURRENT_BINARY_DIR}/${_compilation_name}) 61 LIST(APPEND _fullpath_sources ${_compilation_file}) 62 # MSVC hack that excludes the compilations from the intellisense database 63 # (There is a bug with the "-" instead of "/". Only works for "Zm#" argument) 64 IF(MSVC) 65 SET_SOURCE_FILES_PROPERTIES(${_compilation_file} PROPERTIES COMPILE_FLAGS "-Zm1000") 66 ENDIF() 61 67 ENDIF() 62 68 SET(_compilation_name)
Note: See TracChangeset
for help on using the changeset viewer.