Skip to content

Commit

Permalink
Link against libm
Browse files Browse the repository at this point in the history
  • Loading branch information
t-sommer committed Oct 7, 2024
1 parent 183a850 commit 0506f86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ set_target_properties(${TARGET_NAME} PROPERTIES
set_target_properties(${TARGET_NAME} PROPERTIES PREFIX "")
set_target_properties(${TARGET_NAME} PROPERTIES OUTPUT_NAME ${MODEL_NAME})

if (UNIX)
target_link_libraries(${TARGET_NAME} m)
endif ()

set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/lib)

# modelDescription.xml
Expand Down

0 comments on commit 0506f86

Please sign in to comment.