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 git revision checks causes project regeneration #302

Open
mattparks opened this issue Oct 2, 2019 · 1 comment
Open

CMake git revision checks causes project regeneration #302

mattparks opened this issue Oct 2, 2019 · 1 comment

Comments

@mattparks
Copy link

I have glbinding added to a project using FetchContent_Declare in CMake, I've noticed that every time I make a commit I will get a message like this in Visual Studio, and require a rebuild:

1>CMake is re-running because C:/Users/albrem/Documents/Workspace/Project/build/x86-Debug/_deps/glbinding-build/CMakeFiles/generate.stamp is out-of-date.
1>  the file 'C:/Users/albrem/Documents/Workspace/Project/.git/refs/heads/master'
1>  is newer than 'C:/Users/albrem/Documents/Workspace/Project/build/x86-Debug/_deps/glbinding-build/CMakeFiles/generate.stamp.depend'

I am using glbinding in a very large project, right now after any commit or branch change my entire project requires a rebuild.

@scheibel
Copy link
Member

I added a patch to the current master branch which will allow to skip the git revision parsing.
This is done if either (1) the glbinding CMake project detects it is not the root of the CMake project build, or (2) if the CMake option OPTION_USE_GIT_INFORMATION is set to Off.

Let me know if this helps.

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