CMake works great with to find packages i *nix. But it is pretty hard to use in Windows.
I have been away, off Windows for quiet looong time and my life was breeze. Now that I have to compile and package that app for Windows, I have literally used more than two days, gazillion of hours each only to try getting CMake find wxWidgets. I have tried almost anything and everythng found on the net. While searching, I have found a lot of people having same issue with no practical solution.
Now out of frustration I ended asking myself with no answer. I though I could post it here!
What makes find_package so hard to find packages in Windows? I wish CMake wasn't a requirement in this project!
It is terrible PoS on Windows AFA finding packages is concerned!
Why is CMake find_xxx in Windows such useless piece of software?
- evstevemd
- Part Of The Furniture
- Posts: 2408
- Joined: Wed Jan 28, 2009 11:57 am
- Location: United Republic of Tanzania
Why is CMake find_xxx in Windows such useless piece of software?
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Re: Why is CMake find_xxx in Windows such useless piece of software?
Hi,
I presume you are using the latest wxWidgets version?
And not so latest CMake version?
Please use the updated CMake configuration from the wx distribution...
There was a bug in CMake and it was fixed and submitted to CMakwe upstream.
Thank you.
I presume you are using the latest wxWidgets version?
And not so latest CMake version?
Please use the updated CMake configuration from the wx distribution...
There was a bug in CMake and it was fixed and submitted to CMakwe upstream.
Thank you.
Re: Why is CMake find_xxx in Windows such useless piece of software?
Sorry, but this is a non-issue.
In particular, finding* wxWidgets is easy, if you have it in one of the standard locations, it works out of the box. Even if you do not, just tell CMake where it is, using a documented variable, and it still works.
*using wxWidgets is also easy as it does not depend on external libraries.
In particular, finding* wxWidgets is easy, if you have it in one of the standard locations, it works out of the box. Even if you do not, just tell CMake where it is, using a documented variable, and it still works.
*using wxWidgets is also easy as it does not depend on external libraries.
- evstevemd
- Part Of The Furniture
- Posts: 2408
- Joined: Wed Jan 28, 2009 11:57 am
- Location: United Republic of Tanzania
Re: Why is CMake find_xxx in Windows such useless piece of software?
Hi PB,
I had to do a lot of workarounds.
Well may be I was dumb, but things didn't work as the did for the same app in Linux. I will give another shot and see.PB wrote: ↑Thu Nov 10, 2022 6:21 am Sorry, but this is a non-issue.
In particular, finding* wxWidgets is easy, if you have it in one of the standard locations, it works out of the box. Even if you do not, just tell CMake where it is, using a documented variable, and it still works.
*using wxWidgets is also easy as it does not depend on external libraries.
I had to do a lot of workarounds.
Chief Justice: We have trouble dear citizens!
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?
Citizens: What it is his honor?
Chief Justice:Our president is an atheist, who will he swear to?