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()