aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2013-07-20 10:47:34 +0200
committerStefan Bühler <stbuehler@web.de>2013-07-20 10:47:34 +0200
commitef2ff3f59969ef7b7b228ba6f3a0b716554b2586 (patch)
tree56fe2ba2007e16d27148dc3302b68cbf9057de10 /CMakeLists.txt
parent64c505e3c7725b18bc2ee88e1beccf518253de5f (diff)
downloadfcgi-cgi-ef2ff3f59969ef7b7b228ba6f3a0b716554b2586.tar.gz
fcgi-cgi-ef2ff3f59969ef7b7b228ba6f3a0b716554b2586.zip
[cmake] fix macros, glib2 including and libev cflags
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt13
1 files changed, 6 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 50a7f16..18eed2f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,8 +23,7 @@ FIND_PACKAGE(LibEV REQUIRED)
# GLIB 2
pkg_check_modules (GLIB2 REQUIRED glib-2.0)
-SET(GLIB_INCLUDES ${GLIB2_INCLUDE_DIRS} ${GLIB2_INCLUDE_DIRS}/glib-2.0/ ${GLIB2_INCLUDE_DIRS}/glib-2.0/include/)
-INCLUDE_DIRECTORIES(${GLIB_INCLUDES})
+INCLUDE_DIRECTORIES(${GLIB2_INCLUDES_DIRS})
SET(MAIN_SOURCE fastcgi.c fcgi-cgi.c)
@@ -36,15 +35,15 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
add_executable(fcgi-cgi ${MAIN_SOURCE})
-ADD_TARGET_PROPERTIES(fcgi-cgi COMPILE_FLAGS "-std=gnu99 -Wall -g -Wshadow -W -pedantic -fPIC -D_GNU_SOURCE")
+ADD_TARGET_PROPERTIES(fcgi-cgi COMPILE_FLAGS "-std=gnu99 -Wall -g -Wshadow -W -pedantic -fPIC")
# libev
-TARGET_LINK_LIBRARIES(fcgi-cgi "${LIBEV_LDFLAGS}")
+TARGET_LINK_LIBRARIES(fcgi-cgi ${LIBEV_LDFLAGS})
+ADD_TARGET_PROPERTIES(fcgi-cgi COMPILE_FLAGS ${LIBEV_CFLAGS})
# GLIB 2
-TARGET_LINK_LIBRARIES(fcgi-cgi "${GLIB2_LIBRARIES}")
-ADD_TARGET_PROPERTIES(fcgi-cgi LINK_FLAGS "${GLIB2_LDFLAGS}")
-ADD_TARGET_PROPERTIES(fcgi-cgi COMPILE_FLAGS "${GLIB2_CFLAGS_OTHER}" "${LIBEV_CFLAGS}")
+TARGET_LINK_LIBRARIES(fcgi-cgi ${GLIB2_LDFLAGS})
+ADD_TARGET_PROPERTIES(fcgi-cgi COMPILE_FLAGS ${GLIB2_CFLAGS})
INSTALL(TARGETS fcgi-cgi DESTINATION bin)