From 82bad550e5229450a7ecddee8c23ece6b177e810 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Sun, 13 Oct 2024 23:43:00 +0300 Subject: [PATCH] CMakeLists.txt: fixes --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3dd4e3f..e10c38b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,11 +9,11 @@ if(NOT EMSCRIPTEN) endif() # CMake actually has no default configuration and it's toolchain file dependent, set debug if not specified -if(NOT CMAKE_BUILD_TYPE) +if(NOT DEFINED CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE Debug) endif() -if(NOT TWN_SANITIZE AND CMAKE_BUILD_TYPE MATCHES Debug) +if(NOT DEFINED TWN_SANITIZE AND CMAKE_BUILD_TYPE MATCHES Debug) set(TWN_SANITIZE ON) endif() @@ -183,7 +183,7 @@ function(give_options_without_warnings target) $<$:${BUILD_FLAGS_RELEASE}> $<$:${BUILD_FLAGS_DEBUG}> -Bsymbolic-functions - -Wl,--hash-style=gnu) + $<$:-Wl,--hash-style=gnu>) target_compile_definitions(${target} PRIVATE $<$:TWN_FEATURE_DYNLIB_GAME>