summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-qt.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-01 22:26:24 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-01 22:26:24 +0100
commitd12cee7e1cf4a61ba3e2e0748a7efa9e188d0194 (patch)
tree32c55dfadb6da3234ff0c362cf7d391c31af2da2 /cmake/opentrack-qt.cmake
parent79aa5c60b38da8403ec2550247143c8f4b45d323 (diff)
cmake/qt: try get Qt with correct CRT version
Issue: #867
Diffstat (limited to 'cmake/opentrack-qt.cmake')
-rw-r--r--cmake/opentrack-qt.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/opentrack-qt.cmake b/cmake/opentrack-qt.cmake
index 0480b323..527f9fd7 100644
--- a/cmake/opentrack-qt.cmake
+++ b/cmake/opentrack-qt.cmake
@@ -20,7 +20,10 @@ endfunction()
function(otr_install_qt_libs)
if(WIN32)
foreach(i Qt5::Core Qt5::Gui Qt5::Network Qt5::SerialPort Qt5::Widgets)
- get_property(path TARGET "${i}" PROPERTY LOCATION)
+ get_property(path TARGET "${i}" PROPERTY "LOCATION_${CMAKE_BUILD_TYPE}")
+ if(path STREQUAL "")
+ get_property(path TARGET "${i}" PROPERTY IMPORTED_LOCATION)
+ endif()
if("${path}" STREQUAL "")
message(FATAL_ERROR "${i} ${path}")
endif()