From 47133258776e169bd92cdf44e6e8f59495512bb7 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Mon, 7 Sep 2009 14:13:28 +0000 Subject: [PATCH] Touchup to cmake project file to prevent error msg in OS X --- CMakeLists.txt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 888f234..c0ecd25 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,13 +2,13 @@ cmake_minimum_required(VERSION 2.6) project(chaiscript) -SET (CMAKE_BUILD_TYPE gdb) -SET (CMAKE_C_FLAGS_GDB " -Wall -ggdb") -SET (CMAKE_CXX_FLAGS_GDB " -Wall -ggdb") +#SET (CMAKE_BUILD_TYPE gdb) +#SET (CMAKE_C_FLAGS_GDB " -Wall -ggdb") +#SET (CMAKE_CXX_FLAGS_GDB " -Wall -ggdb") -#SET (CMAKE_BUILD_TYPE rel) -#SET (CMAKE_C_FLAGS_REL " -Wall -O3") -#SET (CMAKE_CXX_FLAGS_REL " -Wall -O3") +SET (CMAKE_BUILD_TYPE rel) +SET (CMAKE_C_FLAGS_REL " -Wall -O3") +SET (CMAKE_CXX_FLAGS_REL " -Wall -O3") include_directories(include) @@ -19,7 +19,8 @@ if (Boost_FOUND) #add_executable(dispatchkit_test contrib/test/dispatchkit_test.cpp) target_link_libraries(chaiscript_eval dl ${Boost_LIBRARIES}) - add_library(test MODULE src/test_module.cpp) + add_library(test MODULE src/test_module.cpp) + target_link_libraries(test ${Boost_LIBRARIES}) install(TARGETS chaiscript_eval DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/bin)