summaryrefslogtreecommitdiffhomepage
path: root/variant
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-10 01:09:24 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-10 01:50:50 +0100
commit84a8fd04f9880620983705ded75f2fb6efc6ddac (patch)
treef9da5a155788cc560665ef817770a3116ac6fa1b /variant
parent0e2909b8c7dc4ab1cf30a5881ae127c2417eed62 (diff)
cmake: link version static library to the right target
Diffstat (limited to 'variant')
-rw-r--r--variant/default/CMakeLists.txt2
-rw-r--r--variant/default/_variant.cmake3
-rw-r--r--variant/trackmouse/CMakeLists.txt2
3 files changed, 4 insertions, 3 deletions
diff --git a/variant/default/CMakeLists.txt b/variant/default/CMakeLists.txt
index a9e3c754..a8829aa5 100644
--- a/variant/default/CMakeLists.txt
+++ b/variant/default/CMakeLists.txt
@@ -6,4 +6,4 @@ set_target_properties(opentrack-executable PROPERTIES
PREFIX ""
)
-target_link_libraries(opentrack-executable opentrack-user-interface)
+target_link_libraries(${self} opentrack-user-interface opentrack-version)
diff --git a/variant/default/_variant.cmake b/variant/default/_variant.cmake
index b7ba90b3..04994dae 100644
--- a/variant/default/_variant.cmake
+++ b/variant/default/_variant.cmake
@@ -22,7 +22,8 @@ function(otr_init_variant)
"macosx"
"cv"
"migration"
- "main-window")
+ "main-window"
+ )
set_property(GLOBAL PROPERTY opentrack-subprojects "${subprojects}")
endfunction()
diff --git a/variant/trackmouse/CMakeLists.txt b/variant/trackmouse/CMakeLists.txt
index c57479d4..6240d4b3 100644
--- a/variant/trackmouse/CMakeLists.txt
+++ b/variant/trackmouse/CMakeLists.txt
@@ -6,4 +6,4 @@ set_target_properties(opentrack-executable PROPERTIES
PREFIX ""
)
-target_link_libraries(opentrack-executable opentrack-user-interface)
+target_link_libraries(${self} opentrack-user-interface opentrack-version)