From 6ee0ec70a3722a7f1921a00648c5ec12e71ed3dc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=20Gait=C3=A1n?= Date: Mon, 7 Dec 2009 20:24:09 +0100 Subject: [PATCH] added definitions of sdl cflags --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 071be0b..a749ef7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,10 @@ ELSE(APPLE) IF(NOT USE_MAIN) SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -nostartfiles" CACHE STRING "Flags used by the linker during all build types." FORCE) ENDIF(NOT USE_MAIN) + IF(UNIX) + ADD_DEFINITIONS(-D_GNU_SOURCE=1) + ADD_DEFINITIONS(-D_REENTRANT) + ENDIF(UNIX) ENDIF(APPLE) CONFIGURE_DEFAULTS() @@ -50,7 +54,7 @@ link_directories(${LIBRARY_OUTPUT_PATH}) ############ set(DEMO_NAME fov120) FILE(GLOB HEADERS "*.h*") -SET(SOURCES main.c dl_init.c synth.c play.c) +SET(SOURCES main.c dl_init.c play.c synth.c) IF(APPLE) SET(SOURCES ${SOURCES} SDLMainForMacOSX.h SDLMainForMacOSX.m) ENDIF(APPLE) -- 2.34.1