CMakePCHCompiler
CMakePCHCompiler copied to clipboard
CMake precompiled header support via custom PCH compiler extension
## Setting CMAKE_CXX_STANDARD leads to error Minimal `CMakeLists.txt` example reproducing bug or showing requested feature: ~~~cmake cmake_minimum_required(VERSION 3.0) # Choose C++ standard set(CMAKE_CXX_STANDARD 17) list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/CMakePCHCompiler) project(pchtest CXX CXXPCH)...
To avoid issues when switching configurations/platforms in Visual Studio, store the pch in a directory based on the `$(Configuration)` and `$(Platform)` macros.
I think the new note on the /Z7 flag gives the impression that this is solution aimed at supporting 2010 (at the expense of newer editions) whereas it's really a...
For some reason, using `target_link_libraries(... OpenGL::GL)` causes `-isystem /usr/include` to be added to the PCH build, which apparently causes breakage: ``` /usr/include/c++/8.3.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory...
In project README > CMake does not allow to insert source file to existing target once it has been defined. But source can be insert *before* `add_executable/library`. > Even if...
It's not CMakePCHCompiler problem. It's common. Qt Creator uses clang to have good syntax higlighting. This option is optional but by default it's enabled. This means Qt Creator compiles each...
> -- The C compiler identification is GNU 7.3.0 > -- The CXX compiler identification is GNU 7.3.0 > -- Could not determine Eclipse version, assuming at least 3.6 (Helios)....
I am trying to use this package under Ubuntu with gcc, and somehow I get the following: - The make rules for creating and using CMakeFiles/Foo.pch.dir/Bar.h.gch are done correctly -...
Will the Linux-GNU-CXXPCH work with clang or is there a reason you didn't create a file for clang on linux?