From c8a65f28940e84511c018ea67479b95076d7c3a3 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Sun, 13 Oct 2024 21:44:32 +0300 Subject: [PATCH] only do _GNU_SOURCE on linux --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cba7670..3dd4e3f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -187,7 +187,7 @@ function(give_options_without_warnings target) target_compile_definitions(${target} PRIVATE $<$:TWN_FEATURE_DYNLIB_GAME> - _GNU_SOURCE) + $<$:_GNU_SOURCE>) endfunction()