cotire
cotire copied to clipboard
CMake module to speed up builds.
Linux No rule to make target '/home/Work/ntprog/main/Sources/Gui/utils/clang++', needed by 'Sources/Gui/utils/cotire/QtGuiUtilsLib_CXX_prefix.cxx'. Stop.
For example, a target lib1 has precompile set; app1 depends on lib1, is app able to use lib1's precompile header? This will save a lot of time as generating pch...
CMake allows you to specify "interface target properties" which are then "inherited" by all dependent targets; this is unfortunately not respected by cotire 1.7.8. I've constructed a small testcase that...
Fixes #105. For some reason, `"${CMAKE_INCLUDE_SYSTEM_FLAG_${_language}}"` expands to `"-isystem "` (with a trailing space). This caused problems where the compiler got a single argument as `-isystem /path/to/include/dir` and somehow didn't...
When using a unity target the precompiled headers are not used. Is this normal or am I doing something wrong? As you can see below for the normal target the...
Given this code: ``` cmake_minimum_required(VERSION 3.6) project(foo) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}") include(cotire) add_library(foo a.cpp b.cpp c.cpp) add_library(bar a.cpp b.cpp c.cpp) target_include_directories(foo PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty) target_include_directories(bar SYSTEM PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty) set_property(TARGET foo PROPERTY COTIRE_CXX_PREFIX_HEADER_INIT "${CMAKE_CURRENT_SOURCE_DIR}/prefix.hpp")...
I am trying to use the GSL (https://github.com/Microsoft/GSL) with cotire in a project. GSL adds compile definitions to the INTERFACE target using generator expressions: ``` target_compile_definitions(GSL INTERFACE $ ) ```...
Currently if a system header file included in a generated pch file gets trivially changed (like new write date without modifications) clang errors due to ``` fatal error: file '/usr/include/pthread.h'...
This merge request fixes two issues that were showstoppers for me. Please integrate them, or not, as you see fit. Everything included here is just a suggestion. If you want...
`libc++` has added a redirection of [errno.h](https://github.com/llvm-mirror/libcxx/blob/master/include/errno.h), which causes problems with cotire. In application source specifying `#include `, cotire adds `#include "/Library/Developer/CommandLineTools/usr/include/c++/v1/errno.h"` to the `_CXX_prefix.cxx` file. This file (from libc++)...