From e3a28b640f8636a2af6136fe9d6cf61d2b377ce0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lepin?= Date: Wed, 23 Nov 2016 21:45:25 +0100 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e668f446..e8bdcb98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,14 +66,12 @@ if(WIN32) "${CMAKE_BINARY_DIR}/$") endif() -if(UNIX) +if(UNIX AND NOT APPLE) target_compile_options(mbedcrypto PRIVATE -fPIC) + set_target_properties(obs-websocket PROPERTIES PREFIX "") target_link_libraries(obs-websocket obs-frontend-api) -endif() -if(UNIX AND NOT APPLE) - set_target_properties(obs-websocket PROPERTIES PREFIX "") install(TARGETS obs-websocket LIBRARY DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/obs-plugins) install(FILES data/locale/en-US.ini data/locale/fr-FR.ini