Fix windows build

core needs to be linked after wxWidgets + use wide string literals
This commit is contained in:
Roberto Fernandez Bautista 2023-07-24 22:59:41 +02:00
parent 9902250f5d
commit 6cb804228b
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ target_include_directories( kiplatform PUBLIC
)
target_link_libraries( kiplatform
core
${wxWidgets_LIBRARIES}
${PLATFORM_LIBS}
core # include after wxWidgets to have correct macro definitions for windows headers
)

View File

@ -32,7 +32,7 @@ bool KIPLATFORM::DRIVERS::Valid3DConnexionDriverVersion()
// Open the registry key for 3dConnexion
if( RegOpenKeyEx( HKEY_LOCAL_MACHINE,
"Software\\3Dconnexion\\3DxWare Version",
L"Software\\3Dconnexion\\3DxWare Version",
0, KEY_READ, &hKey ) == ERROR_SUCCESS )
{
char buffer[256];