Permalink
Browse files

Adds a dependency on libm

  • Loading branch information...
1 parent 61d3465 commit 58a8dcc67957df95bd02caea791b9c4e99ebf08f Yurii Rashkovskii committed Apr 25, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 CMakeLists.txt
View
6 CMakeLists.txt
@@ -7,13 +7,15 @@ set(MAIN_CLIPS_SRC ${CLIPS_SRC})
list(REMOVE_ITEM CLIPS_SRC deps/clips/core/main.c)
list(REMOVE_ITEM CLIPS_SRC deps/clips/core/userfunctions.c)
link_directories(deps/zeromq/src/.libs)
+find_library(M_LIB m)
add_executable(clips ${MAIN_CLIPS_SRC})
add_executable(hypnotoad ${SRC} ${CLIPS_SRC})
-target_link_libraries(hypnotoad libzmq.a)
+target_link_libraries(clips ${M_LIB})
+target_link_libraries(hypnotoad libzmq.a ${M_LIB})
include_directories("deps/clips/core" "deps/zeromq/include")
add_custom_command(OUTPUT deps/zeromq/src/.libs/libzmq.a
COMMAND ./autogen.sh
COMMAND ./configure
COMMAND make
- WORKING_DIRECTORY deps/zeromq)
+ WORKING_DIRECTORY deps/zeromq)

0 comments on commit 58a8dcc

Please sign in to comment.