diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-06-25 18:46:25 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-06-25 18:46:25 +0200 |
commit | a7e9d910af516e76c56b582c65a3c47d6ad4cb77 (patch) | |
tree | 42c386dbcd39a026e393e490b10965bbdcb44c0f /cmake/opentrack-boilerplate.cmake | |
parent | 3c3025cf003b5ced670eb70fcb253307ef7342d6 (diff) |
cmake: fix modules not installing
Diffstat (limited to 'cmake/opentrack-boilerplate.cmake')
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index b0d58aab..d76df9e4 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -216,9 +216,12 @@ function(otr_module n_) endif() if(NOT arg_NO-INSTALL) - if(arg_BIN) + if(arg_BIN AND WIN32) + install(TARGETS "${n}" RUNTIME DESTINATION ${opentrack-hier-bin} PERMISSIONS ${opentrack-perms-exec}) + else() install(TARGETS "${n}" ${opentrack-hier-str} PERMISSIONS ${opentrack-perms-exec}) endif() + if(MSVC) set(opentrack_install-debug-info FALSE CACHE BOOL "Whether to build and install debug info at install time") if(opentrack_install-debug-info) |