From 79c718d7e0cf9e72e6c5f645b9335fa02cc494ec Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 24 Apr 2019 20:38:57 +0200 Subject: cmake: kill link_libraries win32 kludge --- compat/CMakeLists.txt | 4 ---- video-opencv/CMakeLists.txt | 3 +++ 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() -- cgit v1.2.3