Changeset 6412 for code/branches/pickup2/cmake
- Timestamp:
- Dec 25, 2009, 1:18:03 PM (15 years ago)
- Location:
- code/branches/pickup2
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup2
- Property svn:mergeinfo changed
-
code/branches/pickup2/cmake/CompilerConfigMSVC.cmake
r5929 r6412 149 149 # Use Link time code generation for Release config if ORXONOX_RELEASE is defined 150 150 IF(ORXONOX_RELEASE) 151 REMOVE_COMPILER_FLAGS("-INCREMENTAL:YES" ReleaseAll CACHE) 151 152 ADD_LINKER_FLAGS("-LTCG" ReleaseAll CACHE) 152 153 ENDIF() -
code/branches/pickup2/cmake/FindLua.cmake
r2710 r6412 136 136 ENDIF() 137 137 ENDIF(${LUA_5.0_LUA_LIBRARY} MATCHES "framework") 138 138 139 139 IF(LUA_5.0_LIBRARIES) 140 140 SET(LUA_5.0_FOUND TRUE) -
code/branches/pickup2/cmake/FindPackageHandleAdvancedArgs.cmake
r2710 r6412 25 25 # EXACT keyword if specified in FIND_PACKAGE(...). 26 26 # 27 27 28 28 INCLUDE(FindPackageHandleStandardArgs) 29 29 INCLUDE(CompareVersionStrings) -
code/branches/pickup2/cmake/LibraryConfig.cmake
r5794 r6412 25 25 # for certain libraries (Boost, OpenAL, TCL) 26 26 # 27 27 28 28 INCLUDE(CompareVersionStrings) 29 29 INCLUDE(FindPackageHandleStandardArgs) -
code/branches/pickup2/cmake/LibraryConfigApple.cmake
r5781 r6412 23 23 # Sets necessary library options and paths on Mac. 24 24 # 25 25 26 26 IF(APPLE) 27 27 MESSAGE(STATUS "Running on Apple. Using customized paths and options.") -
code/branches/pickup2/cmake/PrecompiledHeaderFiles.cmake
r5929 r6412 23 23 24 24 INCLUDE(GetGCCCompilerFlags) 25 25 26 26 MACRO(PRECOMPILED_HEADER_FILES_PRE_TARGET _target_name _header_file_arg _sourcefile_var) 27 27 … … 94 94 SET(_old_flags "") 95 95 ENDIF() 96 96 SET_SOURCE_FILES_PROPERTIES(${_file} PROPERTIES COMPILE_FLAGS "${_old_flags} /FI\"${_pch_header_file}\" /Yu\"${_pch_header_file}\" /Fp\"${_pch_file}\"") 97 97 ENDIF(NOT _is_header) 98 98 ENDFOREACH(_file) … … 152 152 COMMAND ${CMAKE_CXX_COMPILER} 153 153 ARGS ${pchsupport_compiler_cxx_arg1} ${_pch_gcc_flags} -c -x c++-header -o ${_pch_file} ${_pch_header_file} 154 154 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} 155 155 DEPENDS ${_pch_dep_helper_file} 156 156 IMPLICIT_DEPENDS CXX ${_pch_header_file} -
code/branches/pickup2/cmake/SourceFileUtilities.cmake
r5929 r6412 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 ${_compilation_file}) 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) … … 69 75 IF(_compile AND NOT DISABLE_COMPILATIONS) 70 76 LIST(APPEND _compilation ${_filepath}) 71 77 LIST(APPEND _fullpath_sources "H") 72 78 ENDIF() 73 79 ENDIF() -
code/branches/pickup2/cmake/TargetUtilities.cmake
r5929 r6412 181 181 ENDFOREACH(_file) 182 182 183 184 183 185 # Add the library/executable 184 186 IF("${_target_type}" STREQUAL "LIBRARY") … … 190 192 ENDIF() 191 193 194 195 192 196 # Change library prefix to "lib" 193 197 IF(MSVC AND ${_target_type} STREQUAL "LIBRARY") … … 195 199 PREFIX "lib" 196 200 ) 201 ENDIF() 202 203 # MSVC hack to exclude external library sources from the intellisense database 204 # (IntelliSense stops working when adding "-Zm1000" as compile flag. "/Zm1000" 205 # would not work because of the slash) 206 IF(_arg_ORXONOX_EXTERNAL AND MSVC) 207 SET_TARGET_PROPERTIES(${_target_name} PROPERTIES COMPILE_FLAGS "-Zm1000") 197 208 ENDIF() 198 209
Note: See TracChangeset
for help on using the changeset viewer.