This commit is contained in:
Pablo Romero 2022-08-26 11:44:11 +02:00
parent 9a15791fbe
commit 84a5f0e2eb
2 changed files with 5 additions and 5 deletions

View File

@ -90,7 +90,7 @@ extern "C" {
#endif #endif
#include <time.h> #include <time.h>
#ifdef OS_LINUX #if defined(OS_LINUX) || defined(OS_QNX)
#include <malloc.h> #include <malloc.h>
#include <sched.h> #include <sched.h>
#endif #endif
@ -107,7 +107,7 @@ extern "C" {
#endif #endif
#endif #endif
#ifdef OS_HAIKU #if defined(OS_HAIKU) || defined(OS_QNX)
#define NO_SYSV_IPC #define NO_SYSV_IPC
#endif #endif

View File

@ -40,7 +40,7 @@ else()
c_${float_char}blas1.c) c_${float_char}blas1.c)
endif() endif()
target_link_libraries(x${float_char}cblat1 ${OpenBLAS_LIBNAME}) target_link_libraries(x${float_char}cblat1 ${OpenBLAS_LIBNAME})
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "QNX")
target_link_libraries(x${float_char}cblat1 m) target_link_libraries(x${float_char}cblat1 m)
endif() endif()
add_test(NAME "x${float_char}cblat1" add_test(NAME "x${float_char}cblat1"
@ -65,7 +65,7 @@ else()
constant.c) constant.c)
endif() endif()
target_link_libraries(x${float_char}cblat2 ${OpenBLAS_LIBNAME}) target_link_libraries(x${float_char}cblat2 ${OpenBLAS_LIBNAME})
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "QNX")
target_link_libraries(x${float_char}cblat2 m) target_link_libraries(x${float_char}cblat2 m)
endif() endif()
add_test(NAME "x${float_char}cblat2" add_test(NAME "x${float_char}cblat2"
@ -90,7 +90,7 @@ else()
constant.c) constant.c)
endif() endif()
target_link_libraries(x${float_char}cblat3 ${OpenBLAS_LIBNAME}) target_link_libraries(x${float_char}cblat3 ${OpenBLAS_LIBNAME})
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" OR ${CMAKE_SYSTEM_NAME} MATCHES "QNX")
target_link_libraries(x${float_char}cblat3 m) target_link_libraries(x${float_char}cblat3 m)
endif() endif()
add_test(NAME "x${float_char}cblat3" add_test(NAME "x${float_char}cblat3"