projects
/
platform
/
upstream
/
openblas.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bede1c4
)
Explicitly link against libm on Android with cmake as well
author
Martin Kroeker
<martin@ruby.chemie.uni-freiburg.de>
Tue, 5 Dec 2017 12:02:48 +0000
(13:02 +0100)
committer
GitHub
<noreply@github.com>
Tue, 5 Dec 2017 12:02:48 +0000
(13:02 +0100)
Patch from #1384
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
6c52b25
..
1bdcd52
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-151,6
+151,11
@@
endif()
# add objects to the openblas lib
add_library(${OpenBLAS_LIBNAME} ${LA_SOURCES} ${LAPACKE_SOURCES} ${RELA_SOURCES} ${TARGET_OBJS} ${OpenBLAS_DEF_FILE})
+# Android needs to explicitly link against libm
+if(ANDROID)
+ target_link_libraries(${OpenBLAS_LIBNAME} m)
+endif()
+
# Handle MSVC exports
if(MSVC AND BUILD_SHARED_LIBS)
if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 3.4)