diff options
author | Naios <naios-dev@live.de> | 2017-11-28 22:05:25 +0100 |
---|---|---|
committer | Naios <naios-dev@live.de> | 2017-12-20 04:04:27 +0100 |
commit | 964d6bd1b21f95da40194cca860c7a9ac9f81973 (patch) | |
tree | 5cdee3df58f7f41612e65ff1e6196e4068758f64 /CMakeLists.txt | |
parent | ff35262a3ac804db7a941f29040e4b299a7cb7c4 (diff) |
Build: Use the cotire library for precompiled header handling
* Required for handling flags inherited by linked projects
correctly in the corresponding precompiled header.
* Reduces the maintenance effort for precompiled headers
(cherry picked from commit 92f96fc10e70b2d62cce832837477d958e2afbe3)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 51614d66f2c..a1654ed3de6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,7 +35,9 @@ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") set(CMAKE_INSTALL_RPATH_USE_LINK_PATH 1) # set macro-directory -set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/macros") +list(APPEND CMAKE_MODULE_PATH + "${CMAKE_SOURCE_DIR}/cmake/macros" + "${CMAKE_SOURCE_DIR}/dep/cotire/CMake") # build in Release-mode by default if not explicitly set if( NOT CMAKE_BUILD_TYPE ) |