diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f5634ac..f39bb95a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,7 +77,7 @@ endif() #-------------------------------------------------------------------- if (BUILD_SHARED_LIBS) set(_GLFW_BUILD_DLL 1) - if (UNIX OR APPLE) + if (UNIX) add_definitions(-fvisibility=hidden) endif() endif()