|
|
@@ -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) |
|
|
|