utest needs to be linked against libm on QNX as well
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Mon, 25 Jul 2022 15:02:16 +0000 (17:02 +0200)
committerGitHub <noreply@github.com>
Mon, 25 Jul 2022 15:02:16 +0000 (17:02 +0200)
utest/CMakeLists.txt

index 5511015..2e32827 100644 (file)
@@ -59,7 +59,7 @@ add_executable(${OpenBLAS_utest_bin} ${OpenBLAS_utest_src})
 
 target_link_libraries(${OpenBLAS_utest_bin} ${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(${OpenBLAS_utest_bin} m)
 endif()