Commit 3e8986b1 authored by Tom Finegan's avatar Tom Finegan

Add libm in CMake when needed.

Directly adding libm to the libaom target when building
non-MSVC and non-APPLE targets.

BUG=aomedia:831

Change-Id: Ia1f9cf6b79c4b4d15297969ff9ef4b9831113f4f
parent 58011a71
......@@ -243,6 +243,10 @@ add_dependencies(aom_rtcd aom_version)
add_library(aom_encoder_stats OBJECT ${AOM_ENCODER_STATS_SOURCES})
add_library(aom ${AOM_SOURCES} $<TARGET_OBJECTS:aom_rtcd>)
if (NOT MSVC AND NOT APPLE)
target_link_libraries(aom ${AOM_LIB_LINK_TYPE} m)
endif ()
# List of object and static library targets.
set(AOM_LIB_TARGETS ${AOM_LIB_TARGETS} aom_rtcd aom_encoder_stats aom_mem
aom_scale aom)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment