CMake: check if the compiler supports using precompiled headers
Build the cotire test project and check if it succeeds. Also check if the 'had text segment at different address' warning does not appear in the build output. If it does not succeed, disable usage of precompiled headers. If the PCH option was changed, clean the project and rebuild it again. Do not clean everytime the project is configured because (re)building the cotire test project takes some time.
This commit is contained in:
10
build/cmake/modules/cotire_test/src/log.h
Normal file
10
build/cmake/modules/cotire_test/src/log.h
Normal file
@@ -0,0 +1,10 @@
|
||||
// cotire example project
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace logging {
|
||||
|
||||
void error(const std::string& msg);
|
||||
void info(const std::string& msg);
|
||||
|
||||
}
|
Reference in New Issue
Block a user