Search Criteria
Package Details: mingw-w64-cmake 1-40
Package Actions
Git Clone URL: | https://aur.archlinux.org/mingw-w64-cmake.git (read-only, click to copy) |
---|---|
Package Base: | mingw-w64-cmake |
Description: | CMake wrapper for MinGW (mingw-w64) |
Upstream URL: | http://fedoraproject.org/wiki/MinGW |
Licenses: | GPL |
Submitter: | brcha |
Maintainer: | xantares |
Last Packager: | xantares |
Votes: | 57 |
Popularity: | 0.40 |
First Submitted: | 2013-04-17 12:11 (UTC) |
Last Updated: | 2022-12-05 17:39 (UTC) |
Dependencies (5)
- cmake (cmake-gitAUR)
- mingw-w64-environmentAUR (llvm-mingw-w64-environmentAUR)
- mingw-w64-gcc (mingw-w64-gcc132AUR, llvm-mingw-w64-toolchain-ucrt-binAUR, llvm-mingw-w64-toolchain-msvcrt-binAUR)
- mingw-w64-pkg-configAUR (llvm-mingw-w64-pkg-configAUR)
- mingw-w64-wineAUR (optional) – runtime support
Required by (278)
- mingw-w64-abseil-cpp (make)
- mingw-w64-agrum (make)
- mingw-w64-aom (make)
- mingw-w64-armadillo (make)
- mingw-w64-asmjit (make)
- mingw-w64-assimp (make)
- mingw-w64-async++-git (make)
- mingw-w64-avisynthplus (make)
- mingw-w64-blas (make)
- mingw-w64-blosc (make)
- mingw-w64-box2d (make)
- mingw-w64-brotli (make)
- mingw-w64-bullet (make)
- mingw-w64-c++utilities (make)
- mingw-w64-c-ares (make)
- mingw-w64-capstone (make)
- mingw-w64-catch2v3 (make)
- mingw-w64-cblas (make)
- mingw-w64-ceres-solver (make)
- mingw-w64-cfitsio (make)
- Show 258 more...
Latest Comments
1 2 3 4 5 6 .. 9 Next › Last »
Denzy7 commented on 2024-10-23 10:59 (UTC) (edited on 2024-10-23 11:02 (UTC) by Denzy7)
@Martchus
GET_RUNTIME_DEPENDENCIES
is used to get shared libraries used by a target so you can copy dll's to the target install directory. This makes dll's that sth likemingw-w64-gtk3
to be easily copied since they are many.I did notice
cmake --install
exits without an error on msys2 but nothing get copied overMartchus commented on 2024-10-18 08:50 (UTC)
@Denzy7 Probably nobody uses that yet in a cross mingw-w64 environment - so I guess some rough edges are expected. Not sure what
GET_RUNTIME_DEPENDENCIES
internally does. Maybe it depends on an external tool that is not installed or correctly selected. You'll have to debug this. Maybe I can also have a look at some point considering this might actually be a useful feature.Denzy7 commented on 2024-10-18 06:47 (UTC)
I have an issue using install
file(GET_RUNTIME_DEPENDENCIES
. It works ok with linux cmake but throws an error:mrpinkolik commented on 2023-01-31 10:14 (UTC)
@class101 That's why I love Arch. Whenever I have a problem, there's already someone who had solved it
class101 commented on 2022-01-01 02:30 (UTC) (edited on 2022-01-01 02:33 (UTC) by class101)
I see that's a different usage.
In my opinion your wrapper script works great. All it needed I explained in the bottom on my previous comment, if you convert the parameters into environnement variable, the expected result will probably be what you want, and it executes what I ask him to without problems.
In my opinion it is a common practice to replace a binary by a wrapper script on Linux to inject an environnement variable, but never seen a script to inject parameters in a program
Currently I'm using a lot CLion between windows and linux, with around 6 different toolchains and each with its debug and release build directory automatically managed by clion.
Near that I have to take care one of my co worker is under visual studio
So if I can avoid hacks into what CLion does, I prefer :D
It is just like you in the IDE, I set this once at the IDE setting level and then it works for all projects
hhromic commented on 2021-10-31 18:09 (UTC)
Thanks @Martchus, that's indeed a very good point. We use this on a CI setup where the sources are not expected to change after configuring the build, but yes if you expect the cmake files to change at some point, then you need to make sure you are sourcing the environment like the wrapper does :+1:
Martchus commented on 2021-10-31 17:26 (UTC) (edited on 2021-10-31 17:27 (UTC) by Martchus)
When following @hhromic's example, just take care to source the mingw-w64 env because otherwise linker flags will be missing. (The wrapper sources it but of course that has no effect on the subsequent plain cmake calls which may invoke a reconfiguration of your project when CMake files change.)
hhromic commented on 2021-10-31 16:59 (UTC)
In addition to what Martchus said, you also don't need to use the wrapper for every cmake command, just the initial invocation to configure the build. After the build is configured, you can use the real cmake binary to run further cmake commands. For example:
This will pick up the environment set by the wrapper to configure the build itself. This works for me very well, but maybe other cmake experts could confirm this is a suitable approach too.
Martchus commented on 2021-10-31 15:12 (UTC) (edited on 2021-10-31 15:14 (UTC) by Martchus)
Just use the normal cmake command, e.g. when using Qt Creator I prefer doing all settings within the IDEs config and don't use this wrapper at all. You can still use the wrapper for initial configuration of course.
class101 commented on 2021-10-31 12:49 (UTC) (edited on 2021-10-31 13:25 (UTC) by class101)
mingw-w64-cmake breaks
--build
and other commandsHello, I wanted to bring attention that this package breaks the use of the
--build
command.Issue
After installating
mingw-w64-cmake
and attempting to use the--build
, as the following command used by CLion failsor
Root cause
It is specified in the
cmake --help-full
documentation that the build options should be passed as :[-- <build-tool-options>]
But as
mingw-w64-cmake
rewrite the cmake launcher, it is forcing options to be added before the--build
parameter, and so on, breaks its use.Fix
One solution would be to change
to
I have checked, this works with
--build
now, but fails with others -_-.So I believe to really fix this package, you will need to bring a more elegant wrapper script, or rebuild from sources to work properly with all the possible cmake use cases.
So it seem cmake is waiting for the [options] tag at different positions depending on the requested command line, this sound very difficult to make a perfect 'all-in-one' wrapper script to support everything
Maybe a cleaner way would be to pass them as environment variable, I have read in the docs that CMake is supposed to fork them
Tested on cmake 3.21.4
Edit: This seems to work better
1 2 3 4 5 6 .. 9 Next › Last »