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

Source directory is modified during CMake configuration #591

Open
ungive opened this issue Jul 17, 2024 · 0 comments
Open

Source directory is modified during CMake configuration #591

ungive opened this issue Jul 17, 2024 · 0 comments

Comments

@ungive
Copy link

ungive commented Jul 17, 2024

This is nothing big, but when configuring the project with CMake, the source directory is modified, which shows changes to stage in my git status message and in my editor, which is a bit annoying. This line in CMakeLists.txt is the reason:

configure_file(${CMAKE_CURRENT_SOURCE_DIR}/hconfig.h.in ${CMAKE_CURRENT_SOURCE_DIR}/hconfig.h)

My suggestion is to either write the output to the CMake binary directory and add the output directory to the include path or add hconfig.h to .gitignore.

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