Re: [CMake] LINK_DIRECTORIES before ADD_EXECUTABLE?

2009-05-19 Thread John Platt
Hi Tyler, Thanks for your answers. Returning to whether the boost libraries are statically or dynamically linked, I probably need to use SET(Boost_USE_STATIC_LIBS ON). John. - Original Message - From: "Tyler Roscoe" To: "John Platt" Cc: Sent: Monday, M

[CMake] LINK_DIRECTORIES before ADD_EXECUTABLE?

2009-05-18 Thread John Platt
Hi, I have built a static library lib1 and test program lib1test using the following CMAKE 2.6.2 commands without problems. INCLUDE_DIRECTORIES( /usr/local/boost_1_39_0 ) ADD_LIBRARY( lib1 STATIC ${lib1_srcs} ) ADD_EXECUTABLE( lib1test lib1test.cpp ) LINK_DIRECTORIES( /usr/local/lib ) # boost s