projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2a130f
)
Update CMakeLists.txt for BSD + libdl
author
Bablooos
<beetle@gambler.ru>
Tue, 29 Nov 2016 12:45:37 +0000
(20:45 +0800)
committer
Andy Green
<andy@warmcat.com>
Fri, 16 Dec 2016 14:08:13 +0000
(22:08 +0800)
Fixing build failure of libwebsockets-test-fraggle on FreeBSD when LWS_WITH_PLUGINS.
Solution: FreeBSD has no libdl
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
69dc673
..
0fa36c1
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-1047,7
+1047,9
@@
if (NOT LWS_WITHOUT_TESTAPPS)
if (UNIX AND LWS_WITH_PLUGINS)
set(CMAKE_C_FLAGS "-fPIC ${CMAKE_C_FLAGS}")
- target_link_libraries(websockets dl)
+ if(NOT(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD"))
+ target_link_libraries(websockets dl)
+ endif()
endif()
if (NOT LWS_WITHOUT_SERVER)