mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 06:14:35 +00:00
Compare commits
2 Commits
b35215ef69
...
f5789965dd
Author | SHA1 | Date | |
---|---|---|---|
|
f5789965dd | ||
|
89d101550d |
@ -366,3 +366,16 @@ if (GLFW_INSTALL)
|
|||||||
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------
|
||||||
|
# Link Time Optimization
|
||||||
|
#--------------------------------------------------------------------
|
||||||
|
if (BUILD_SHARED_LIBS AND ${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.9.0")
|
||||||
|
include(CheckIPOSupported)
|
||||||
|
check_ipo_supported(RESULT result OUTPUT output)
|
||||||
|
if(result)
|
||||||
|
message(STATUS "glfw: Using IPO")
|
||||||
|
set_property(TARGET glfw PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||||
|
else()
|
||||||
|
message(WARNING "IPO is not supported: ${output}")
|
||||||
|
endif ()
|
||||||
|
endif ()
|
||||||
|
Loading…
Reference in New Issue
Block a user