projects
/
project
/
ustream-ssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mbedtls: fix build on non-linux systems
[project/ustream-ssl.git]
/
CMakeLists.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index f4dca0dba358db483fcef82e8fabde4dff587fdd..2e591ee76b4a2c9d8642ae9620266c43fa245eda 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-10,7
+10,9
@@
ENDIF()
ADD_DEFINITIONS(-Wno-unused-parameter -Wmissing-declarations)
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
ADD_DEFINITIONS(-Wno-unused-parameter -Wmissing-declarations)
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
-SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined")
+IF (NOT APPLE)
+ SET(CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined")
+ENDIF()
IF(MBEDTLS)
ADD_DEFINITIONS(-DHAVE_MBEDTLS)
IF(MBEDTLS)
ADD_DEFINITIONS(-DHAVE_MBEDTLS)