Code: Select all
root/
application/
main.cpp
CMakeLists.txt
ext/
wxWidgets/
CMakeLists.txt
...
CMakeLists.txt
CMakeLists.txt
root/CMakeLists.txt just adds the two subdirectors and sets CMAKE_CXX_STANDARD to 14
ext/CMakeLists.txt adds the wxWidgets subdirector and creates an INTERFACE library with the wxWidgets libraries I am using as INTERFACE links
application/CMakeLists.txt contains the executable definition and links to the INTERFACE library
Both Debug and Release mode will both create their respective make files (in seperate directories to ensure no conflict)
Debug Build in MSVC2017 works fine no issues
Release Build in MSVC2017 fails to build with the following error `wxmsw31u_core.lib(wxmsw312u_core_vc_x64_custom.dll) : error LNK2005: "public: virtual __cdecl wxNavigationEnabled<class wxWindow>::~wxNavigationEnabled<class wxWindow>(void)" (??1?$wxNavigationEnabled@VwxWindow@@@@UEAA@XZ) already defined in treelist.cpp.obj`
What I want to know is, is any one else suffering from this? and are there any suggestions to resolve this? (I plan to use components from the wxAdvanced library so can't disable it)
Let me know if more information is required
Thanks in advanced Cethric