aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/Modules/BuildMacros.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules/BuildMacros.cmake')
-rw-r--r--cmake/Modules/BuildMacros.cmake15
1 files changed, 13 insertions, 2 deletions
diff --git a/cmake/Modules/BuildMacros.cmake b/cmake/Modules/BuildMacros.cmake
index 8125fa7f9..63d54502b 100644
--- a/cmake/Modules/BuildMacros.cmake
+++ b/cmake/Modules/BuildMacros.cmake
@@ -169,8 +169,16 @@ macro(build_library lib)
foreach(file ${ARG_INSTALL_HEADERS})
get_filename_component(_dir ${file} DIRECTORY)
- get_filename_component(dir ${_dir} NAME)
- if (${dir} STREQUAL src)
+
+ if (_dir)
+ get_filename_component(dir ${_dir} NAME)
+ if ("${dir}" STREQUAL src)
+ set(dir "")
+ endif()
+ if ("${dir}" STREQUAL includes)
+ set(dir "")
+ endif()
+ else()
set(dir "")
endif()
@@ -200,3 +208,6 @@ macro(AddTest testFile)
set_target_properties(${ARGV0} PROPERTIES FOLDER Test)
add_dependencies(${ARGV0} ${PROJECT_NAME}_cleanup_profiling_data)
endmacro(AddTest)
+
+include(IosMacros)
+include(WindowsMacros)