summaryrefslogtreecommitdiffhomepage
path: root/tracker-aruco/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-06-24 12:03:53 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-06-24 12:03:53 +0200
commit71a90c382e390a6424ff57ad64afa9075823c1c8 (patch)
tree351f9b61c2a4640f4dd5f1000512789d67c93b47 /tracker-aruco/CMakeLists.txt
parent70832cc3b198998fa506211bd2d90f1a9c3e3458 (diff)
tracker/aruco: minor fixes
Diffstat (limited to 'tracker-aruco/CMakeLists.txt')
-rw-r--r--tracker-aruco/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/tracker-aruco/CMakeLists.txt b/tracker-aruco/CMakeLists.txt
index 506c9bd1..dfbc18a3 100644
--- a/tracker-aruco/CMakeLists.txt
+++ b/tracker-aruco/CMakeLists.txt
@@ -5,5 +5,10 @@ if(OpenCV_FOUND)
otr_module(tracker-aruco)
target_link_libraries(opentrack-tracker-aruco opentrack-cv ${SDK_ARUCO_LIBPATH} ${OpenCV_LIBS})
target_include_directories(opentrack-tracker-aruco SYSTEM PUBLIC ${OpenCV_INCLUDE_DIRS})
+
+ # no incremental LTO
+ if(MSVC AND MSVC_VERSION GREATER 1910 AND MSVC_VERSION LESS 1950)
+ otr_prop(TARGET opentrack-tracker-aruco LINK_FLAGS "/LTCG")
+ endif()
endif()
endif()