I\'m working on a C++ framework, and there\'s a few issues when I compile it on OSX with Clang.
First of, I\'m using some other libraries, such as openssl, and clang
Solved it ! Clang needs to receive the option -undefined dynamic_lookup
to ignore missing symbols when compiling a library.
Add this to the CMakeFile.txt to produce the expected effect:
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS} -undefined dynamic_lookup")
endif()