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
Fix #7047 #7075
Fix #7047 #7075
Conversation
this looks like lots of unneeded changes, I'd prefer just restricting the |
This PR originally contained a more complicated fix (see https://github.com/nOOb3167/minetest/tree/cmakehdr3_old). |
src/CMakeLists.txt
Outdated
@@ -530,7 +530,7 @@ set(server_SRCS | |||
) | |||
list(SORT server_SRCS) | |||
|
|||
if ((CMAKE_VERSION VERSION_GREATER 3.8) OR (CMAKE_VERSION VERSION_EQUAL 3.8)) | |||
if (CMAKE_VERSION VERSION_GREATER 3.8.1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add a comment here stating why it's 3.8.1 and not something else
The comment now added to the change is formatted after a preexisting case in src/CMakeLists.txt about blacklisting locales (short summary line followed by issue numbers):
|
Fix #7047 by specifying absolute paths for source files within src/CMakeLists.txt (more detail as to why this works in the #7047 comments).
That file was the only place where relative paths were used for source files, therefore after this commit it is now consistent throughout the codebase.
Looking at the source lists, two files were found specified twice (first in common_SRCS, then again in client_SRCS. (client_SRCS includes common_SRCS)): convert_json.cpp and hud.cpp.
These two files are now specified just in common_SRCS.
Alternatively the required CMake version could be bumped past the version exhibiting this bug (3.8.1).