From 29857b87efdec4ed6a4adb8162d2428460eec53a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 7 Jun 2017 03:55:46 +0200 Subject: cmake: cleanup We now inherit parent process' console. No need for the cmake cache option. --- cmake/opentrack-boilerplate.cmake | 4 ---- compat/linkage-macros.hpp | 6 ------ gui/CMakeLists.txt | 12 +----------- 3 files changed, 1 insertion(+), 21 deletions(-) diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index 7052e704..24771e44 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -60,9 +60,6 @@ function(otr_fixup_subsystem n) if(MSVC) set(subsystem WINDOWS) get_property(type TARGET "${n}" PROPERTY TYPE) - if(SDK_CONSOLE_DEBUG AND ".${type}" STREQUAL ".EXECUTABLE") - set(subsystem CONSOLE) - endif() set(loc "$") if (NOT type STREQUAL "STATIC_LIBRARY") add_custom_command(TARGET "${n}" @@ -274,7 +271,6 @@ function(otr_prop type) else() set(spc " ") endif() - set_property("${type}" "${f}" APPEND_STRING PROPERTY "${name}" "${spc}${value}") endwhile() endforeach() diff --git a/compat/linkage-macros.hpp b/compat/linkage-macros.hpp index b9bc9801..460e7ee5 100644 --- a/compat/linkage-macros.hpp +++ b/compat/linkage-macros.hpp @@ -7,9 +7,3 @@ # define OTR_GENERIC_EXPORT __attribute__ ((visibility ("default"))) # define OTR_GENERIC_IMPORT #endif - -#if defined _MSC_VER -# define OTR_GENERIC_TEMPLATE -#else -# define OTR_GENERIC_TEMPLATE __attribute__ ((visibility ("default"))) -#endif diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index 7d140dd6..d0cba4ac 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -1,14 +1,4 @@ -if(MSVC OR (NOT SDK_CONSOLE_DEBUG AND WIN32)) - set(console "") -else() - set(console WIN32-CONSOLE) -endif() - -if(WIN32) - SET(SDK_CONSOLE_DEBUG FALSE CACHE BOOL "Console window visible at runtime") -endif() - -otr_module(user-interface EXECUTABLE BIN ${console}) +otr_module(user-interface EXECUTABLE BIN) set_target_properties(opentrack-user-interface PROPERTIES SUFFIX "${opentrack-binary-suffix}" -- cgit v1.2.3