From 868c199a526015ce4d7a327345827ff5a7a28cb9 Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 23 Oct 2017 13:41:20 -0500 Subject: [PATCH] Only exculde libs when not hiding symbols --- src/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c16a8649e2..d88fbc59e6 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -300,9 +300,9 @@ target_link_libraries(MIOpen ${MIOPEN_BOOST_LIB_VISIBILITY} if(UNIX) if(NOT BUILD_DEV) set_target_properties(MIOpen PROPERTIES CXX_VISIBILITY_PRESET hidden) - endif() - if(NOT APPLE) - target_link_libraries(MIOpen PRIVATE "-Wl,--exclude-libs,ALL") + if(NOT APPLE) + target_link_libraries(MIOpen PRIVATE "-Wl,--exclude-libs,ALL") + endif() endif() endif() endif()