summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Huth <huth@tuxfamily.org>2021-04-03 06:12:42 (GMT)
committerThomas Huth <huth@tuxfamily.org>2021-04-03 06:12:42 (GMT)
commit3c821d0bfb7671e2928a1a87251207f2f9d4223b (patch)
tree88ae1132e777fdef2fde8ea43af15da04d9d0e14
parent8de1dc153a7483da489d2d106cd782bc7a195244 (diff)
downloadhatari-3c821d0bfb.zip
hatari-3c821d0bfb.tar.gz
extra CFLAGS should only be added to the Hatari executable
-rw-r--r--src/CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 1ecbe61..90d2830 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -72,11 +72,6 @@ if(CapsImage_FOUND)
include_directories(${CAPSIMAGE_INCLUDE_DIR})
endif(CapsImage_FOUND)
-if(SDL2_OTHER_CFLAGS)
- add_definitions(${SDL2_OTHER_CFLAGS})
- # message(STATUS "Additional CFLAGS of SDL: ${SDL2_OTHER_CFLAGS}")
-endif(SDL2_OTHER_CFLAGS)
-
link_directories(${CMAKE_CURRENT_BINARY_DIR}/debug
${CMAKE_CURRENT_BINARY_DIR}/falcon
${CMAKE_CURRENT_BINARY_DIR}/gui-sdl
@@ -153,6 +148,11 @@ else()
add_executable(hatari ${SOURCES})
endif(ENABLE_OSX_BUNDLE)
+if(SDL2_OTHER_CFLAGS)
+ target_compile_definitions(hatari PRIVATE ${SDL2_OTHER_CFLAGS})
+ # message(STATUS "Additional CFLAGS of SDL: ${SDL2_OTHER_CFLAGS}")
+endif(SDL2_OTHER_CFLAGS)
+
target_link_libraries(hatari Falcon UaeCpu GuiSdl Floppy Debug ${SDL2_LIBRARY})
if(Math_FOUND AND NOT APPLE)