Skip to content

Commit

Permalink
Fix CMake building on *nix
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpatdiscord committed May 28, 2023
1 parent 5ea8205 commit 775ed2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ target_include_directories(QOAConv PUBLIC ${QOAConvInclude})
target_include_directories(QOAPlay PUBLIC ${QOAPlayInclude})

if (WIN32)
target_link_libraries(QOAConv m ole32)
target_link_libraries(QOAConv -lm)
target_link_libraries(QOAPlay -lole32)
elseif (UNIX)
target_link_libraries(QOAConv m pthread asound)
target_link_libraries(QOAConv -lm)
target_link_libraries(QOAPlay -lpthread -lasound)
endif()

0 comments on commit 775ed2b

Please sign in to comment.