浏览代码

cotire 1.1.2

master
Sascha Kratky 12 年前
父节点
当前提交
1f92f153a6
共有 2 个文件被更改,包括 14 次插入8 次删除
  1. +10
    -8
      CMake/cotire.cmake
  2. +4
    -0
      HISTORY.md

+ 10
- 8
CMake/cotire.cmake 查看文件

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

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

include(CMakeParseArguments)

@@ -93,13 +93,15 @@ endfunction()

macro (cotire_check_is_path_relative_to _path _isRelativeVar)
set (${_isRelativeVar} FALSE)
foreach (_dir ${ARGN})
file (RELATIVE_PATH _relPath "${_dir}" "${_path}")
if (NOT _relPath OR (NOT IS_ABSOLUTE "${_relPath}" AND NOT "${_relPath}" MATCHES "^\\.\\."))
set (${_isRelativeVar} TRUE)
break()
endif()
endforeach()
if (IS_ABSOLUTE "${_path}")
foreach (_dir ${ARGN})
file (RELATIVE_PATH _relPath "${_dir}" "${_path}")
if (NOT _relPath OR (NOT IS_ABSOLUTE "${_relPath}" AND NOT "${_relPath}" MATCHES "^\\.\\."))
set (${_isRelativeVar} TRUE)
break()
endif()
endforeach()
endif()
endmacro()

function (cotire_filter_language_source_files _language _sourceFilesVar _excludedSourceFilesVar _cotiredSourceFilesVar)


+ 4
- 0
HISTORY.md 查看文件

@@ -1,3 +1,7 @@
## 1.1.2 (2012-05-06)

* make handling of include directories more robust agains invalid paths.

## 1.1.1 (2012-04-20)

* fixed bug with generation of unity targets for `WIN32_EXECUTABLE` targets.


正在加载...
取消
保存