Skip to content

Commit b04772f

Browse files
authored
Fixed building on Linux GCC
1 parent dcf8eb2 commit b04772f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ else()
1010
add_executable(midi2mod main.c midi.h midi.c stringcatalog.h stringcatalog.c mod.h mod.c)
1111
endif()
1212

13+
if(UNIX)
14+
set(CMAKE_C_FLAGS "-lm")
15+
endif()
16+
1317
if(WIN32)
1418
target_link_libraries(midi2mod wsock32 ws2_32)
1519
endif()

0 commit comments

Comments
 (0)