Why is CMake find_xxx in Windows such useless piece of software?

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
User avatar
evstevemd
Part Of The Furniture
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?

Post by evstevemd »

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!
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?
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Why is CMake find_xxx in Windows such useless piece of software?

Post by ONEEYEMAN »

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.
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4182
Joined: Sun Jan 03, 2010 5:45 pm

Re: Why is CMake find_xxx in Windows such useless piece of software?

Post by PB »

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.
User avatar
evstevemd
Part Of The Furniture
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?

Post by evstevemd »

Hi PB,
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.
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.
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?
Post Reply