CMake: Fix building samples with MinGW64
Do not enable debugrpt and flash examples. Define UNICODE when building on Windows. This allows the sdk_exe example to build, because it includes the windows headers directly.
This commit is contained in:
@@ -166,6 +166,9 @@ function(wx_set_target_properties target_name is_base)
|
||||
endif()
|
||||
|
||||
if(wxUSE_UNICODE)
|
||||
if(WIN32)
|
||||
target_compile_definitions(${target_name} PUBLIC UNICODE)
|
||||
endif()
|
||||
target_compile_definitions(${target_name} PUBLIC _UNICODE)
|
||||
endif()
|
||||
|
||||
|
Reference in New Issue
Block a user