mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
pthreads only as needed
This just lets you build lws 1.6 without pthreads if your OS / toolchain makes that possible, in the case you don't build the test apps (libwebsockets-test-server-pthreads needs it) Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
0b09734953
commit
aa3c8cd371
1 changed files with 1 additions and 1 deletions
|
@ -489,7 +489,7 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_C_COMPILER_ID
|
|||
endif(UNIX)
|
||||
endif ()
|
||||
|
||||
if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
|
||||
if ((CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX) AND NOT LWS_WITHOUT_TESTAPPS)
|
||||
if (UNIX)
|
||||
# jeez clang understands -pthread but dies if he sees it at link time!
|
||||
# http://stackoverflow.com/questions/2391194/what-is-gs-pthread-equiv-in-clang
|
||||
|
|
Loading…
Add table
Reference in a new issue