]> git.xonotic.org Git - xonotic/netradiant.git/commit
cmake: do not use WIN32 for console tools 137/head
authorThomas Debesse <dev@illwieckz.net>
Fri, 5 Jul 2019 20:25:34 +0000 (22:25 +0200)
committerThomas Debesse <dev@illwieckz.net>
Fri, 5 Jul 2019 20:33:33 +0000 (22:33 +0200)
commit0f91bcf305ef8707b4a96a764c09aeb3cb6beba3
tree65c0917353fdb4a98e96bac9247043506caed455
parentf2f321e97f89c45980cd63d70f98331b484fec1c
cmake: do not use WIN32 for console tools

allow them to output stdout on console and spawn a console if required

it's not very intuitive and explicit but the WIN32 cmake keyword
in add_executable call is to not target the console subsystem but
only the graphical one

so console tools just have to not use that keyword, even if they imay
display a window like when doing q2map -glview

then the WIN32 keyword is a kind of “no console” keyword
CMakeLists.txt
radiant/CMakeLists.txt
tools/quake2/CMakeLists.txt
tools/quake2/qdata_heretic2/CMakeLists.txt
tools/quake3/CMakeLists.txt