mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-29 19:37:30 +01:00
Fix build on *nix-based systems by linking to libm.
This commit is contained in:
parent
ba329d8637
commit
b469045937
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user