[CMake] parameters
larinus at gmail.com
larinus at gmail.com
Thu Mar 12 03:53:44 EDT 2009
Tyler Roscoe wrote:
> On Wed, Mar 11, 2009 at 09:39:30AM +0200, larinus at gmail.com 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".
>
>
thanks. it works.
More information about the CMake
mailing list