From 804d59e0c496af1e22c5d27d30136712f2debba0 Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Thu, 22 Sep 2011 22:49:46 +1100 Subject: [PATCH] * updated cmake build scripts --- CMakeLists.txt | 2 +- src/CMakeLists.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5952133..e678576 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ INCLUDE(CheckFunctionExists) IF (NOT CMAKE_BUILD_TYPE) SET (CMAKE_BUILD_TYPE Debug) - SET (CMAKE_C_FLAGS "-ggdb -O0 -Wall -pedantic -DDEBUG") + SET (CMAKE_C_FLAGS "-ggdb -O0 -Wall -pedantic -DDEBUG -std=c99") ENDIF (NOT CMAKE_BUILD_TYPE) # set paths diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 43c34cb..4839803 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,8 +1,8 @@ add_executable(torrent2json "torrent2json.c") -#add_executable(json2torrent "json2torrent.c") +add_executable(json2torrent "json2torrent.c") target_link_libraries(torrent2json ${BUILD_LIBS}) -#target_link_libraries(json2torrent ${BUILD_LIBS}) +target_link_libraries(json2torrent ${BUILD_LIBS}) -install(TARGETS torrent2json +install(TARGETS torrent2json torrent2json RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")