Hi there,
I’m in the middle of a windows app build using Clion/Cmake (via Mingw), and found out that in order to have a release build which is free from external dll dependencies I need to add the following to my Cmakelists release build part:
this is a basic workaround solution coming from here
My issue is that there’s no (afaik) chance of translating any projucer exporter flag (the ones Cmake exporter might import from) into these Cmake specific flags.
Since I really do not want to lose my projucer project, I see the following solutions, which are (hence the post category) feature requests :
projucer post save script
some cmake specific entries in the Cmake exporter
Of course I’d be also very happy to have missed a trivial way of making this happen in my CmakeLists file via some exporter data which is already in place and working… all the best in this case!!!
The contents of CMAKE_CXX_STANDARD_LIBRARIES and CMAKE_EXE_LINKER_FLAGS should end-up in the command line for the linker. Have you tried putting all these flags in the “Extra Linker Flags” field of the “Code::Blocks (Windows)” exporter in Projucer?
in the “Extra Linker Flags” field of the “Code::Blocks (Windows)” exporter should be all you need (-lwsock32 and -lws2_32 are already there, because they are dependencies of juce_core).