summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-boilerplate.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/opentrack-boilerplate.cmake')
-rw-r--r--cmake/opentrack-boilerplate.cmake10
1 files changed, 7 insertions, 3 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index d76df9e4..554b1add 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -216,10 +216,14 @@ function(otr_module n_)
endif()
if(NOT arg_NO-INSTALL)
- if(arg_BIN AND WIN32)
- install(TARGETS "${n}" RUNTIME DESTINATION ${opentrack-hier-bin} PERMISSIONS ${opentrack-perms-exec})
+ if(arg_BIN)
+ install(TARGETS "${n}"
+ RUNTIME DESTINATION ${opentrack-hier-bin}
+ LIBRARY DESTINATION ${opentrack-hier-pfx}
+ PERMISSIONS ${opentrack-perms-exec})
else()
- install(TARGETS "${n}" ${opentrack-hier-str} PERMISSIONS ${opentrack-perms-exec})
+ install(TARGETS "${n}" ${opentrack-hier-str}
+ PERMISSIONS ${opentrack-perms-exec})
endif()
if(MSVC)