Merge pull request #337 from Tilka/lto

Fix LTO with GCC 4.9
This commit is contained in:
Ryan Houdek 2014-06-07 00:54:28 -05:00
commit b7519fdde1

View File

@ -212,6 +212,10 @@ endif()
if(ENABLE_LTO)
check_and_add_flag(LTO -flto)
if(CMAKE_CXX_COMPILER_ID STREQUAL GNU)
set(CMAKE_AR gcc-ar)
set(CMAKE_RANLIB gcc-ranlib)
endif()
endif()
if(APPLE)