projects
/
platform
/
upstream
/
VK-GL-CTS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98faf68
)
Let linker find libm on unix
author
Pyry Haulos
<phaulos@google.com>
Wed, 10 Aug 2016 17:22:55 +0000
(10:22 -0700)
committer
Pyry Haulos
<phaulos@google.com>
Wed, 10 Aug 2016 17:22:55 +0000
(10:22 -0700)
Fixes 32-bit builds on 64-bit systems.
Change-Id: Idec88517d7208f1a616cde8c688fa6b5e6e7d2a6
framework/delibs/debase/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/framework/delibs/debase/CMakeLists.txt
b/framework/delibs/debase/CMakeLists.txt
index
b39eb32
..
2f9d8d0
100644
(file)
--- a/
framework/delibs/debase/CMakeLists.txt
+++ b/
framework/delibs/debase/CMakeLists.txt
@@
-29,11
+29,7
@@
add_library(debase STATIC ${DEBASE_SRCS})
# link debase to libm on unix systems
if (DE_OS_IS_UNIX)
- find_library(MATH_LIBRARY NAMES libm m PATHS /usr/lib /lib)
- if (NOT MATH_LIBRARY)
- message(FATAL_ERROR "Can't find libm.")
- endif (NOT MATH_LIBRARY)
- target_link_libraries(debase ${MATH_LIBRARY})
+ target_link_libraries(debase m)
add_definitions(-D_XOPEN_SOURCE=600)
endif ()