summaryrefslogtreecommitdiffhomepage
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
parentab57277ad5a67d9267cf83c7df49bade163f90d6 (diff)
cmake: fix boilerplate for NO-LIBRARY + STAGE2
-rw-r--r--cmake/opentrack-boilerplate.cmake4
-rw-r--r--gui/CMakeLists.txt1
2 files changed, 3 insertions, 2 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()
diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt
index 3b2e60e1..08534795 100644
--- a/gui/CMakeLists.txt
+++ b/gui/CMakeLists.txt
@@ -34,5 +34,4 @@ if(LINUX)
endif()
opentrack_boilerplate(opentrack STAGE2)
-install(TARGETS opentrack DESTINATION .)