summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-04-24 20:38:57 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-04-24 20:38:57 +0200
commit79c718d7e0cf9e72e6c5f645b9335fa02cc494ec (patch)
tree7e0e5bbf6ee174af121e43a5f7fae16d5e766a4b
parentdbcb5bf2a7d304f4cf7cc1ef3a02dad91f252360 (diff)
cmake: kill link_libraries win32 kludge
-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()