소스 검색

cotire 1.1.8

master
Sascha Kratky 11 년 전
부모
커밋
938d8dd90c
2개의 변경된 파일10개의 추가작업 그리고 2개의 파일을 삭제
  1. +6
    -2
      CMake/cotire.cmake
  2. +4
    -0
      HISTORY.md

+ 6
- 2
CMake/cotire.cmake 파일 보기

@@ -44,7 +44,7 @@ if (NOT CMAKE_SCRIPT_MODE_FILE)
endif()

set (COTIRE_CMAKE_MODULE_FILE "${CMAKE_CURRENT_LIST_FILE}")
set (COTIRE_CMAKE_MODULE_VERSION "1.1.7")
set (COTIRE_CMAKE_MODULE_VERSION "1.1.8")

include(CMakeParseArguments)

@@ -1709,6 +1709,10 @@ function (cotire_setup_unity_generation_commands _language _target _targetScript
if (_dependencySources)
set_property (SOURCE "${_unityFile}" PROPERTY OBJECT_DEPENDS ${_dependencySources})
endif()
if (MSVC)
# unity file compilation results in potentially huge object file, thus use /bigobj by default unter MSVC
set_property (SOURCE "${_unityFile}" APPEND_STRING PROPERTY COMPILE_FLAGS " /bigobj ")
endif()
cotire_set_cmd_to_prologue(_unityCmd)
list (APPEND _unityCmd -P "${COTIRE_CMAKE_MODULE_FILE}" "unity" "${_targetScript}" "${_unityFile}")
if (COTIRE_DEBUG)
@@ -2219,7 +2223,7 @@ function (cotire_target _target)
# trivial checks
get_target_property(_imported ${_target} IMPORTED)
if (_imported)
message (WARNING "Imported target ${_target} cannot be cotired")
message (WARNING "Imported target ${_target} cannot be cotired.")
return()
endif()
# check if target needs to be cotired for build type


+ 4
- 0
HISTORY.md 파일 보기

@@ -1,3 +1,7 @@
## 1.1.8 (2012-10-27)

* when using MSVC, apply option `/bigobj` to compilation of generated unity files.

## 1.1.7 (2012-10-26)

* cope with double slash characters in scanned include paths.


불러오는 중...
취소
저장