summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--compat/CMakeLists.txt4
-rw-r--r--video-opencv/CMakeLists.txt3
2 files changed, 3 insertions, 4 deletions
diff --git a/compat/CMakeLists.txt b/compat/CMakeLists.txt
index b58b54e9..3fddefb4 100644
--- a/compat/CMakeLists.txt
+++ b/compat/CMakeLists.txt
@@ -4,10 +4,6 @@ if(NOT WIN32 AND NOT APPLE)
target_link_libraries(opentrack-compat rt)
endif()
-if(WIN32)
- target_link_libraries(opentrack-compat winmm strmiids)
-endif()
-
if(CMAKE_COMPILER_IS_GNUCXX)
set_property(SOURCE nan.cpp APPEND_STRING PROPERTY
COMPILE_FLAGS "-fno-lto -fno-fast-math -fno-finite-math-only -O0 ")
diff --git a/video-opencv/CMakeLists.txt b/video-opencv/CMakeLists.txt
index ad245e66..c56e65d4 100644
--- a/video-opencv/CMakeLists.txt
+++ b/video-opencv/CMakeLists.txt
@@ -4,4 +4,7 @@ find_package(OpenCV QUIET)
if(OpenCV_FOUND)
otr_module(video-opencv)
target_link_libraries(${self} opencv_core opencv_videoio opentrack-video)
+ if(WIN32)
+ target_link_libraries(${self} strmiids)
+ endif()
endif()