-
Notifications
You must be signed in to change notification settings - Fork 372
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 CMake on Windows with Visual Studio #945
Conversation
Avoid setting CMAKE_BUILD_TYPE default when multi-config generators are used. Avoid setting CMAKE_BUILD_TYPE STRINGS property if it is not a cache variable. This avoids CMake errors if CMAKE_BUILD_TYPE isn't set on the command-line. Closes libgeos#932
Well, this builds/test OK on my local env (MacOX 13.5, |
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.
LGTM. Setting a default CMAKE_BUILD_TYPE in your config still isn't worth it to me, but that's the policy that GEOS has taken going forward.
Are there any other reviews needed before merging in this PR? I don't have permissions to merge, so someone else will need to press the button. |
Was hoping @dbaston would weigh in, but time and tide... |
Not much experience building with MSVC, sorry. If it works for the author and Howard, it should be fine. |
@pramsey I should note that this was merged into the 3.12 branch, so it should be cherry-picked onto main at some point. Not sure if that's something you want to handle or if you want me to submit another PR. |
Avoid setting CMAKE_BUILD_TYPE default when multi-config generators are used. Avoid setting CMAKE_BUILD_TYPE STRINGS property if it is not a cache variable. This avoids CMake errors if CMAKE_BUILD_TYPE isn't set on the command-line. Closes #932
Cherry-picked to |
Avoid setting CMAKE_BUILD_TYPE default when multi-config generators are used.
Avoid setting CMAKE_BUILD_TYPE STRINGS property if it is not a cache variable. This avoids CMake errors if CMAKE_BUILD_TYPE isn't set on the command-line.
Closes #932