On Wed, Mar 11, 2009 at 09:39:30AM +0200, [email protected] wrote: > How can i specify the following parameters in my CMakeLists.txt? > cmake -DCMAKE_THREAD_LIBS:STRING="-pthread" -DCMAKE_USE_PTHREADS:BOOL=ON > -DCMAKE_EXE_LINKER_FLAGS:STRING="-pthread"
Maybe I don't understand the question but doesn't this work?: set (CMAKE_THREAD_LIBS "-pthread") However, you probably want to use TARGET_LINK_LIBS and friends instead of trying to set linker flags "by hand". hth, tyler _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
