Permalink
Browse files

Improves zeromq dependency building (don't rebuild it if it was alrea…

…dy built)
  • Loading branch information...
yrashk committed Apr 25, 2012
1 parent d2c89df commit 5a3a8640244ec0e2426e98beb450f9047571c942
Showing with 2 additions and 1 deletion.
  1. +2 −1 CMakeLists.txt
View
@@ -11,10 +11,11 @@ find_library(M_LIB m)
add_executable(clips ${MAIN_CLIPS_SRC})
add_executable(hypnotoad ${SRC} ${CLIPS_SRC})
target_link_libraries(clips ${M_LIB})
+add_dependencies(hypnotoad deps/zeromq/.libs/libzmq.a)
target_link_libraries(hypnotoad libzmq.a ${M_LIB})
include_directories("deps/clips/core" "deps/zeromq/include")
-add_custom_command(TARGET hypnotoad PRE_BUILD
+add_custom_command(OUTPUT deps/zeromq/.libs/libzmq.a
COMMAND ./autogen.sh
COMMAND ./configure
COMMAND make

0 comments on commit 5a3a864

Please sign in to comment.