mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-08-21 06:48:39 -04:00
fix clang with -lm (#7039)
This commit is contained in:
+6
-1
@@ -691,7 +691,9 @@ else()
|
||||
find_package(Vorbis REQUIRED)
|
||||
find_package(Opus REQUIRED)
|
||||
find_package(OpusFile REQUIRED)
|
||||
set(ADDITIONAL_LIBRARY_DEPENDENCIES
|
||||
# clang doesn't pull libm in transitively the way gcc does, link it explicitly
|
||||
find_library(MATH_LIBRARY m)
|
||||
set(ADDITIONAL_LIBRARY_DEPENDENCIES
|
||||
"libultraship;"
|
||||
"torch;"
|
||||
SDL2::SDL2
|
||||
@@ -705,6 +707,9 @@ else()
|
||||
${CMAKE_DL_LIBS}
|
||||
Threads::Threads
|
||||
)
|
||||
if(MATH_LIBRARY)
|
||||
list(APPEND ADDITIONAL_LIBRARY_DEPENDENCIES ${MATH_LIBRARY})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(USE_ASAN)
|
||||
|
||||
Reference in New Issue
Block a user