This commit is contained in:
Pavel Grunt 2017-10-30 11:44:41 +00:00 committed by GitHub
commit ead0aa7569
2 changed files with 14 additions and 10 deletions

View File

@ -183,13 +183,15 @@ if (NOT MSVC)
if(SMP) if(SMP)
target_link_libraries(${OpenBLAS_LIBNAME} pthread) target_link_libraries(${OpenBLAS_LIBNAME} pthread)
target_link_libraries(${OpenBLAS_LIBNAME}_static pthread) target_link_libraries(${OpenBLAS_LIBNAME}_static pthread)
endif() endif()
#build test and ctest if (NOT NOFORTRAN)
add_subdirectory(test) #build test and ctest
if(NOT NO_CBLAS) add_subdirectory(test)
add_subdirectory(ctest) if(NOT NO_CBLAS)
endif() add_subdirectory(ctest)
endif()
endif()
endif() endif()
set_target_properties(${OpenBLAS_LIBNAME} PROPERTIES set_target_properties(${OpenBLAS_LIBNAME} PROPERTIES

View File

@ -150,10 +150,12 @@ if (NEED_PIC)
set(CCOMMON_OPT "${CCOMMON_OPT} -fPIC") set(CCOMMON_OPT "${CCOMMON_OPT} -fPIC")
endif () endif ()
if (${F_COMPILER} STREQUAL "SUN") if (NOT NOFORTRAN)
set(FCOMMON_OPT "${FCOMMON_OPT} -pic") if (${F_COMPILER} STREQUAL "SUN")
else () set(FCOMMON_OPT "${FCOMMON_OPT} -pic")
set(FCOMMON_OPT "${FCOMMON_OPT} -fPIC") else ()
set(FCOMMON_OPT "${FCOMMON_OPT} -fPIC")
endif ()
endif () endif ()
endif () endif ()