Skip to content

Commit

Permalink
Merge pull request #446 from dwrobel/Add-missing-math-library
Browse files Browse the repository at this point in the history
Add missing math library
  • Loading branch information
skiars committed Sep 6, 2024
2 parents 5df11cb + 21c4d83 commit ec82e3c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ endif ()

file(MAKE_DIRECTORY generate)

if(NOT WIN32)
find_library(MATH_LIBRARY m)
else()
set(MATH_LIBRARY "")
endif()

# berry library
file(GLOB SOURCES src/*.c)
add_library(libberry ${SOURCES})
Expand All @@ -35,4 +41,4 @@ add_dependencies(libberry berry-coc)
# berry default exe
file(GLOB SOURCES_EXE default/*.c)
add_executable(berry ${SOURCES_EXE})
target_link_libraries(berry PUBLIC libberry)
target_link_libraries(berry PUBLIC libberry ${MATH_LIBRARY})

0 comments on commit ec82e3c

Please sign in to comment.