| @@ -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() | |||||
| #build test and ctest | |||||
| add_subdirectory(test) | |||||
| if(NOT NO_CBLAS) | |||||
| add_subdirectory(ctest) | |||||
| endif() | |||||
| endif() | |||||
| if (NOT NOFORTRAN) | |||||
| #build test and ctest | |||||
| add_subdirectory(test) | |||||
| if(NOT NO_CBLAS) | |||||
| add_subdirectory(ctest) | |||||
| endif() | |||||
| endif() | |||||
| endif() | endif() | ||||
| set_target_properties(${OpenBLAS_LIBNAME} PROPERTIES | set_target_properties(${OpenBLAS_LIBNAME} PROPERTIES | ||||
| @@ -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") | |||||
| set(FCOMMON_OPT "${FCOMMON_OPT} -pic") | |||||
| else () | |||||
| set(FCOMMON_OPT "${FCOMMON_OPT} -fPIC") | |||||
| if (NOT NOFORTRAN) | |||||
| if (${F_COMPILER} STREQUAL "SUN") | |||||
| set(FCOMMON_OPT "${FCOMMON_OPT} -pic") | |||||
| else () | |||||
| set(FCOMMON_OPT "${FCOMMON_OPT} -fPIC") | |||||
| endif () | |||||
| endif () | endif () | ||||
| endif () | endif () | ||||