Skip to content

Commit cbf1184

Browse files
add math library
1 parent bbcacc6 commit cbf1184

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

code/logic/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ set(TEST_CODE
1818
# Create the library target
1919
add_library(fossil-io STATIC ${TEST_CODE} ${HEADER_FILES})
2020

21+
# Link the math library
22+
target_link_libraries(fossil-io PUBLIC m)
23+
2124
# Set the library to be installed
2225
install(TARGETS fossil-io
2326
ARCHIVE DESTINATION lib

code/logic/meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ dir = include_directories('.')
44
fossil_io_lib = library('fossil-io',
55
files('input.c', 'output.c', 'error.c', 'soap.c', 'stream.c'),
66
install: true,
7+
dependencies: cc.find_library('m', required : false),
78
include_directories: dir)
89

910
fossil_io_dep = declare_dependency(

0 commit comments

Comments
 (0)