mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
CMake: Parse CONSOLE argument correctly in lagom_windows_bin()
The previous cmake_parse_arguments invocation was not parsing CONSOLE arguments, which meant all executable targets that setup with lagom_windows_bin were set to /SUBSYSTEM:WINDOWS even if we explicitly wanted them to use the default /SUBSYSTEM:CONSOLE.
This commit is contained in:
parent
7d96fbaf7a
commit
e3407d68d4
Notes:
github-actions[bot]
2025-11-03 18:24:53 +00:00
Author: https://github.com/ayeteadoe
Commit: e3407d68d4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6659
1 changed files with 5 additions and 1 deletions
|
|
@ -42,10 +42,14 @@ function(lagom_subsystem_windows target_name)
|
|||
endfunction()
|
||||
|
||||
function(lagom_windows_bin target_name)
|
||||
cmake_parse_arguments(PARSE_ARGV 2 LAGOM_WINDOWS_BIN "CONSOLE" "" "")
|
||||
cmake_parse_arguments(LAGOM_WINDOWS_BIN "CONSOLE" "" "" ${ARGN})
|
||||
lagom_copy_runtime_dlls(${target_name})
|
||||
if (NOT LAGOM_WINDOWS_BIN_CONSOLE)
|
||||
lagom_subsystem_windows(${target_name})
|
||||
else()
|
||||
set_target_properties(${target_name} PROPERTIES
|
||||
WIN32_EXECUTABLE FALSE
|
||||
)
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue