diff options
author | Nathan Craddock <nzcraddock@gmail.com> | 2020-02-21 08:09:14 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-02-26 20:12:18 +0300 |
commit | 30b3bf2b5779b82bac146913b2066001ef9c7089 (patch) | |
tree | bd43318e2ae92c50835cabce8ba4db758627cce1 /build_files/cmake/macros.cmake | |
parent | 9dbfc7ca8bf4453c0ad0f5798405a23fe425d747 (diff) |
Build: ignore system paths when using precompiled libraries on Linux
Based on work by Nathan Craddock, with further changes to apply it to all
precompiled libraries.
Differential Revision: https://developer.blender.org/D6929
Diffstat (limited to 'build_files/cmake/macros.cmake')
-rw-r--r-- | build_files/cmake/macros.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index 2ae641b9eb3..622fc42def8 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -1167,3 +1167,10 @@ macro(set_and_warn_dependency endif() endmacro() +macro(without_system_libs_begin) + set(CMAKE_IGNORE_PATH "${CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES};${CMAKE_SYSTEM_INCLUDE_PATH};${CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES};${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES}") +endmacro() + +macro(without_system_libs_end) + unset(CMAKE_IGNORE_PATH) +endmacro() |