From 57e5d7382c8e901d793cc09a0c8f27f418598782 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 14 Jun 2021 01:40:02 +0300
Subject: [PATCH] FIXME: SDL_CFLAGS, SDL_LIBS, SDL_STATIC_LIBS should be
target-specific.
added the FIXME note to CMakeLists.txt.
---
CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b30d275..c7da0d9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -177,6 +177,8 @@ install(TARGETS SDL
if(SDL12DEVEL)
set(SDL_VERSION "${SDL12_COMPAT_VERSION_STR}")
+
+ # FIXME: Make the following target-specific!!
set(SDL_CFLAGS "-D_GNU_SOURCE=1 -D_REENTRANT")
set(SDL_RLD_FLAGS "") # !!! FIXME: this forces rpath, which we might want?
set(SDL_LIBS "-lSDL")