This commit is contained in:
xoviat 2018-01-30 20:50:32 +00:00 committed by GitHub
commit 4a6bf9e911
1 changed files with 10 additions and 0 deletions

View File

@ -147,6 +147,16 @@ endif()
# add objects to the openblas lib # add objects to the openblas lib
add_library(${OpenBLAS_LIBNAME} ${LA_SOURCES} ${LAPACKE_SOURCES} ${RELA_SOURCES} ${TARGET_OBJS} ${OpenBLAS_DEF_FILE}) add_library(${OpenBLAS_LIBNAME} ${LA_SOURCES} ${LAPACKE_SOURCES} ${RELA_SOURCES} ${TARGET_OBJS} ${OpenBLAS_DEF_FILE})
if(POLICY CMP0990)
cmake_policy(SET CMP0990 NEW)
include(CheckIPOSupported)
check_ipo_supported(RESULT IPO_SUPPORTED LANGUAGES C Fortran)
if(IPO_SUPPORTED)
message(STATUS "Building with interprocedural optimization")
set_property(TARGET ${OpenBLAS_LIBNAME} PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
endif()
endif()
# Android needs to explicitly link against libm # Android needs to explicitly link against libm
if(ANDROID) if(ANDROID)
target_link_libraries(${OpenBLAS_LIBNAME} m) target_link_libraries(${OpenBLAS_LIBNAME} m)