Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Precompiled header for other compilers #526

Open
phobos2077 opened this issue Apr 7, 2017 · 1 comment
Open

Precompiled header for other compilers #526

phobos2077 opened this issue Apr 7, 2017 · 1 comment

Comments

@phobos2077
Copy link
Contributor

Would be nice to make the PrecompiledHeader cmake script work with other compilers .

Current solution only works properly with MSVC and is based on this: https://github.com/larsch/cmake-precompiled-header.
It claims to support GCC but in reality it doesn't work (maybe only on some setups). Best guess that it's related to some flags being different for PCH compilation (because PCH is compiled manually by custom build command...).

@Mixaill
Copy link
Contributor

Mixaill commented Apr 8, 2017

Maybe you should use cotire? It supports MSVC, GCC/MinGW, Clang and Intel.

https://github.com/sakra/cotire

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants