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

Store result of try compile in cache variable? #96

Open
jdumas opened this issue Jan 13, 2021 · 0 comments
Open

Store result of try compile in cache variable? #96

jdumas opened this issue Jan 13, 2021 · 0 comments

Comments

@jdumas
Copy link

jdumas commented Jan 13, 2021

Hi,

Those try_compile are quite expensive to re-run each time CMake is called:

try_compile(HAVE_PTHREAD_MUTEX_ROBUST

It would be better to store the result in a CACHE variable (using a prefix to avoid collisions), to speed up project reconfiguration.

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

1 participant