CairoSample
CairoSample copied to clipboard
using CMAKE_GENERATOR_PLATFORM instead of CMAKE_GENERATOR?
First of all this is a great little example and it's helped me understand Cmake quite a bit. The only issue I ran into the first time through was that I am using the generator "Visual Studio 16 2019" with the platform "x64". I've been using the cmake gui for what it's worth. But on the first try VS project did not compile because the x86 version of the DLL had been copied in. On inspection that is because of this line:
if("${CMAKE_GENERATOR}" MATCHES "Win64")
I found that changing this to if("${CMAKE_GENERATOR_PLATFORM}" MATCHES "x64") solved the problem. Since i'm new to cmake I'm not sure if this is unique to my setup but thought you might want to know. Thanks!