Skip to content

Commit

Permalink
fix: linking math lib to fix build issues on freeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
Skryvvara committed Jul 22, 2024
1 parent 2512b06 commit 5ab6229
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ add_subdirectory(lib)
# Add the executable
add_executable(clsh ${SOURCES})

# Link the math library (without this, it won't compile on freeBSD)
target_link_libraries(clsh m)

# Link the Lua library
target_link_libraries(clsh lua_static)

Expand Down

0 comments on commit 5ab6229

Please sign in to comment.