Fix build on *nix-based systems by linking to libm.

This commit is contained in:
Naram Qashat 2019-03-23 12:47:06 -04:00
parent ba329d8637
commit b469045937

View File

@ -18,6 +18,10 @@ macro(setup_target TARGET)
# Set up position-independent code for all targets
set_target_properties(${TARGET} PROPERTIES
POSITION_INDEPENDENT_CODE TRUE)
if(NOT WIN32 AND LINK)
# Include libm on non-Windows systems
target_link_libraries(${TARGET} m)
endif()
if(USE_FDKAAC)
target_compile_definitions(${TARGET} PRIVATE