Browse Source

cotire 1.1.1

master
Sascha Kratky 14 years ago
parent
commit
94dc7ae8c3
2 changed files with 9 additions and 4 deletions
  1. +4
    -4
      CMake/cotire.cmake
  2. +5
    -0
      HISTORY.md

+ 4
- 4
CMake/cotire.cmake View File

@@ -37,7 +37,7 @@ set(__COTIRE_INCLUDED TRUE)
cmake_minimum_required(VERSION 2.8.6) cmake_minimum_required(VERSION 2.8.6)


set (COTIRE_CMAKE_MODULE_FILE "${CMAKE_CURRENT_LIST_FILE}") set (COTIRE_CMAKE_MODULE_FILE "${CMAKE_CURRENT_LIST_FILE}")
set (COTIRE_CMAKE_MODULE_VERSION "1.1.0")
set (COTIRE_CMAKE_MODULE_VERSION "1.1.1")


include(CMakeParseArguments) include(CMakeParseArguments)


@@ -726,8 +726,8 @@ macro (cotire_parse_line _line _headerFileVar _headerDepthVar)
# cl.exe /showIncludes output looks different depending on the language pack used, e.g.: # cl.exe /showIncludes output looks different depending on the language pack used, e.g.:
# English: "Note: including file: C:\directory\file" # English: "Note: including file: C:\directory\file"
# German: "Hinweis: Einlesen der Datei: C:\directory\file" # German: "Hinweis: Einlesen der Datei: C:\directory\file"
# We use a very general regular expression, relying on the presence of the : character
if ("${_line}" MATCHES "( +)([^:]+:[^:]+)$")
# We use a very general regular expression, relying on the presence of the : characters
if ("${_line}" MATCHES ":( +)([^:]+:[^:]+)$")
# Visual Studio compiler output # Visual Studio compiler output
string (LENGTH "${CMAKE_MATCH_1}" ${_headerDepthVar}) string (LENGTH "${CMAKE_MATCH_1}" ${_headerDepthVar})
get_filename_component(${_headerFileVar} "${CMAKE_MATCH_2}" ABSOLUTE) get_filename_component(${_headerFileVar} "${CMAKE_MATCH_2}" ABSOLUTE)
@@ -1974,7 +1974,7 @@ function (cotire_setup_unity_build_target _languages _configurations _target)
# determine unity target sub type # determine unity target sub type
get_target_property(_targetType ${_target} TYPE) get_target_property(_targetType ${_target} TYPE)
if ("${_targetType}" STREQUAL "EXECUTABLE") if ("${_targetType}" STREQUAL "EXECUTABLE")
get_target_property(_isWin32 ${_target} WIN32)
get_target_property(_isWin32 ${_target} WIN32_EXECUTABLE)
get_target_property(_isMacOSX_Bundle ${_target} MACOSX_BUNDLE) get_target_property(_isMacOSX_Bundle ${_target} MACOSX_BUNDLE)
if (_isWin32) if (_isWin32)
set (_unityTargetSubType WIN32) set (_unityTargetSubType WIN32)


+ 5
- 0
HISTORY.md View File

@@ -1,3 +1,8 @@
## 1.1.1 (2012-04-20)

* fixed bug with generation of unity targets for `WIN32_EXECUTABLE` targets.
* fixed bug with parsing of localized MSVC `/showIncludes` output.

## 1.1.0 (2012-04-19) ## 1.1.0 (2012-04-19)


* tested with CMake 2.8.8. * tested with CMake 2.8.8.


Loading…
Cancel
Save