diff --git a/CMakeLists.txt b/CMakeLists.txt index 8525e4a6..3a03a8c2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -146,7 +146,11 @@ if(BENCHMARK) target_compile_definitions(Hop PUBLIC BENCHMARK) endif() -target_link_libraries(Hop PUBLIC jGL ${GLEW_LIBRARIES} zlibstatic stduuid Lua Miniaudio) +if (WINDOWS) + target_link_libraries(Hop PUBLIC jGL ${GLEW_LIBRARIES} zlibstatic stduuid Lua Miniaudio "winmm") +else() + target_link_libraries(Hop PUBLIC jGL ${GLEW_LIBRARIES} zlibstatic stduuid Lua Miniaudio) +endif() if (NOT ANDROID) add_subdirectory(tools/)