Closed Hoikas closed 8 months ago
I've seen this a few times, and it was always due to missing -DCMAKE_BUILD_TYPE
on the initial command-line
AFAIK, Xcode is a multi-config generator, so that ought not to be required.
Also, CMAKE_BUILD_TYPE
should default to Debug
as far as I know. So if not passing -DCMAKE_BUILD_TYPE=...
causes problems, that should be fixed too.
FindPhysX.cmake adds the _DEBUG
macro definition conditionally using a generator expression. As I understand it, that's the intended way to make conditionals work correctly for multi-config generators, so I'm confused why this doesn't work here...
NDEBUG
is not being defined by Xcode, I expect. I'm amending the find script to fix this.
Happens when building #1326 in either Release or RelWithDebInfo using Xcode generator: