Revert all recent wxUSE_DPI_AWARE_MANIFEST-related changes
This reverts 5d630caabd (Make it enough to predefine only
wxUSE_DPI_AWARE_MANIFEST, 2023-08-23) and all the commits which tried to
fix the breakage caused by it.
While the original change had merit, it seems to be too difficult to fix
all our build systems to avoid embedding manifest when defining this in
the code, like samples/sample.rc does, so revert this change for now.
Maybe it can be reintroduced in the future after switching to some other
build system.
This commit is contained in:
parent
1d50fa5207
commit
d69ddb8656
7 changed files with 81 additions and 72 deletions
|
|
@ -793,19 +793,16 @@ function(wx_add name group)
|
|||
set(wxUSE_DPI_AWARE_MANIFEST_VALUE 0)
|
||||
if (${wxUSE_DPI_AWARE_MANIFEST} MATCHES "system")
|
||||
set(wxUSE_DPI_AWARE_MANIFEST_VALUE 1)
|
||||
list(APPEND src_files "${wxSOURCE_DIR}/include/wx/msw/wx_dpi_aware.manifest")
|
||||
elseif(${wxUSE_DPI_AWARE_MANIFEST} MATCHES "per-monitor")
|
||||
set(wxUSE_DPI_AWARE_MANIFEST_VALUE 2)
|
||||
list(APPEND src_files "${wxSOURCE_DIR}/include/wx/msw/wx_dpi_aware_pmv2.manifest")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_executable(${target_name} ${exe_type} ${src_files})
|
||||
|
||||
if (DEFINED wxUSE_DPI_AWARE_MANIFEST_VALUE)
|
||||
if(MSVC)
|
||||
# Manifest is included via .rc file.
|
||||
# Disable the default manifest added by CMake to prevent dupicate manifest error.
|
||||
set_target_properties(${target_name} PROPERTIES LINK_FLAGS "/MANIFEST:NO")
|
||||
endif()
|
||||
target_compile_definitions(${target_name} PRIVATE wxUSE_DPI_AWARE_MANIFEST=${wxUSE_DPI_AWARE_MANIFEST_VALUE})
|
||||
endif()
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue