summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-boilerplate.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-05-23 10:44:14 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-05-23 10:44:14 +0200
commit5075ced78b504b1d32ad6becb4eb857764d30cdb (patch)
treed092bb0190ac6c44b6bf8a217563213f21a1227d /cmake/opentrack-boilerplate.cmake
parentab57277ad5a67d9267cf83c7df49bade163f90d6 (diff)
cmake: fix boilerplate for NO-LIBRARY + STAGE2
Diffstat (limited to 'cmake/opentrack-boilerplate.cmake')
-rw-r--r--cmake/opentrack-boilerplate.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index 3875c46b..3838ca41 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -42,6 +42,8 @@ function(opentrack_boilerplate__ n files_ no-library_ static_ no-compat_ compile
set(link-mode STATIC)
endif()
add_library(${n} ${link-mode} ${files_})
+ endif()
+ if(NOT no-library_)
opentrack_compat(${n})
endif()
if(NOT no-compat_)
@@ -72,7 +74,7 @@ function(opentrack_boilerplate__ n files_ no-library_ static_ no-compat_ compile
string(REGEX REPLACE "^opentrack-" "" n_ ${n})
string(REPLACE "-" "_" n_ ${n_})
target_compile_definitions(${n} PRIVATE "BUILD_${n_}")
- if(NOT static_)
+ if((NOT static_) AND (NOT no-library_))
install(TARGETS ${n} RUNTIME DESTINATION . LIBRARY DESTINATION .)
endif()
endfunction()