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: only use MSYS/NMake generators when available #129

Merged
merged 3 commits into from
Jul 17, 2023

Conversation

stanhu
Copy link
Contributor

@stanhu stanhu commented Jul 17, 2023

When cross-compiling Windows targets with cmake in a Linux environment, the MSYS generator may not be available. Supplying -G MSYS will cause the build to fail.

cmake --help will output the available generators. Before including the -G option, check that the generator is available.

Closes #127

@flavorjones
Copy link
Owner

@stanhu Thanks for this! I kicked off CI but looks like there are some test failures.

@stanhu stanhu force-pushed the sh-cmake-msys branch 2 times, most recently from 943ebf3 to 19d9913 Compare July 17, 2023 16:43
test/test_cmake.rb Outdated Show resolved Hide resolved
@flavorjones
Copy link
Owner

This looks OK to me. @stanhu do you want to write a CHANGELOG entry, and then I can merge and cut a point release for you?

@stanhu
Copy link
Contributor Author

stanhu commented Jul 17, 2023

@flavorjones Sure, should I mark this as v2.9.0?

Copy link
Owner

@flavorjones flavorjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have a few questions about collecting this info via a log file

test/test_cmake.rb Outdated Show resolved Hide resolved
lib/mini_portile2/mini_portile_cmake.rb Outdated Show resolved Hide resolved
When cross-compiling Windows targets with `cmake` in a Linux
environment, the MSYS generator may not be available. Supplying `-G
MSYS` will cause the build to fail.

`cmake --help` will output the available generators. Before including
the `-G` option, check that the generator is available.

Closes flavorjones#127
CHANGELOG.md Outdated Show resolved Hide resolved
@flavorjones flavorjones merged commit 9ac9ee8 into flavorjones:main Jul 17, 2023
30 checks passed
@flavorjones
Copy link
Owner

stanhu added a commit to stanhu/re2 that referenced this pull request Jul 18, 2023
This pulls in flavorjones/mini_portile#129.
When cross-compiling Windows targets with cmake in a Linux
environment, the MSYS generator may not be available. Supplying -G
MSYS will cause the build to fail.
mudge pushed a commit to mudge/re2 that referenced this pull request Jul 25, 2023
This pulls in flavorjones/mini_portile#129.
When cross-compiling Windows targets with cmake in a Linux
environment, the MSYS generator may not be available. Supplying -G
MSYS will cause the build to fail.
mudge pushed a commit to mudge/re2 that referenced this pull request Sep 13, 2023
This pulls in flavorjones/mini_portile#129.
When cross-compiling Windows targets with cmake in a Linux
environment, the MSYS generator may not be available. Supplying -G
MSYS will cause the build to fail.
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

Successfully merging this pull request may close these issues.

[cmake] Make it possible to override default cmake options
2 participants