From 788590ec7357d968f1acafd7e4a2bba728c84a68 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 21 Jun 2019 17:06:14 +0200 Subject: cmake: simplify --- cmake/opentrack-boilerplate.cmake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index c63aacdf..5a93b4e8 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -216,9 +216,7 @@ function(otr_module n_) endif() if(NOT arg_NO-INSTALL) - if(arg_BIN AND WIN32) - install(TARGETS "${n}" RUNTIME DESTINATION . PERMISSIONS ${opentrack-perms-exec}) - else() + if(arg_BIN) install(TARGETS "${n}" ${opentrack-hier-str} PERMISSIONS ${opentrack-perms-exec}) endif() if(MSVC) -- cgit v1.2.3