1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2025-01-30 19:08:51 -05:00
This commit is contained in:
Camilla Berglund 2013-06-17 10:25:17 +02:00
parent 22e1aa6cfc
commit 305c66db31

View File

@ -67,10 +67,14 @@ endif()
find_package(Threads REQUIRED)
#--------------------------------------------------------------------
# Enable all warnings on GCC, regardless of OS
# Set GCC-specific flags
#--------------------------------------------------------------------
if (CMAKE_COMPILER_IS_GNUCC)
add_definitions(-Wall)
if (UNIX AND BUILD_SHARED_LIBS)
add_definitions(-fvisibility=hidden)
endif()
endif()
#--------------------------------------------------------------------
@ -78,9 +82,6 @@ endif()
#--------------------------------------------------------------------
if (BUILD_SHARED_LIBS)
set(_GLFW_BUILD_DLL 1)
if (UNIX)
add_definitions(-fvisibility=hidden)
endif()
endif()
#--------------------------------------------------------------------