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

CMake targets using precompiled headers #526

Open
anarthal opened this issue Jan 2, 2024 · 0 comments
Open

CMake targets using precompiled headers #526

anarthal opened this issue Jan 2, 2024 · 0 comments
Labels
Feature Something new that it should do

Comments

@anarthal
Copy link

anarthal commented Jan 2, 2024

CMake targets using target_precompile_headers cause errors if they haven't been built before:

[103/126] "/home/ruben/workspace/mysql/test/integration/test/connection_pool.cpp"
error: unable to read PCH file /home/ruben/workspace/mysql/__build/test/integration/CMakeFiles/boost_mysql_integrationtests.dir/cmake_pch.hxx.pch: 'No such file or directory'
fatal error: PCH file '/home/ruben/workspace/mysql/__build/test/integration/CMakeFiles/boost_mysql_integrationtests.dir/cmake_pch.hxx.pch' not found: module file not found
2 errors generated

If they have, mrdocs complains that the compiler that generated the PCH doesn't match the LLVM version used by mrdocs:

[103/126] "/home/ruben/workspace/mysql/test/integration/test/connection_pool.cpp"
error: PCH file built from a different branch ((++20231231042330+a384cd5012b8-1~exp1~20231231042445.1403)) than the compiler ((https://github.com/llvm/llvm-project.git 29b20829cc6ce3e6d9c3809164994c1659e0da56))
1 error generated.
@alandefreitas alandefreitas added the Feature Something new that it should do label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Something new that it should do
Projects
Status: No status
Development

No branches or pull requests

2 participants