summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-boilerplate.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-23 13:21:48 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-23 13:21:48 +0200
commit0e1b00e9a78ee65c4b5eeaaa74a2be4a3ccd0ac7 (patch)
treefd39ff101861d850d02f65be4d1c7678f6c287c0 /cmake/opentrack-boilerplate.cmake
parentb9f47fb7ce145b568e81ff4798ca0fb2ab119022 (diff)
cmake: don't try to editbin static libraries. avoid warning.
Diffstat (limited to 'cmake/opentrack-boilerplate.cmake')
-rw-r--r--cmake/opentrack-boilerplate.cmake13
1 files changed, 9 insertions, 4 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake
index 5cabe949..4635a6bd 100644
--- a/cmake/opentrack-boilerplate.cmake
+++ b/cmake/opentrack-boilerplate.cmake
@@ -67,10 +67,13 @@ function(opentrack_fixup_subsystem n)
message(FATAL_ERROR "no vcvars.bat run; probably no editbin in PATH")
endif()
set(loc "$<TARGET_FILE:${n}>")
- add_custom_command(TARGET "${n}"
- POST_BUILD
- COMMAND editbin -nologo -SUBSYSTEM:${subsystem},5.01 -OSVERSION:5.1 \"${loc}\"
- COMMENT "Fixing up Windows XP support for target ${n}")
+ get_property(type TARGET "${n}" PROPERTY TYPE)
+ if (NOT type STREQUAL "STATIC_LIBRARY")
+ add_custom_command(TARGET "${n}"
+ POST_BUILD
+ COMMAND editbin -nologo -SUBSYSTEM:${subsystem},5.01 -OSVERSION:5.1 \"${loc}\"
+ COMMENT "Fixing up Windows XP support for target ${n}")
+ endif()
endif()
endfunction()
@@ -138,6 +141,8 @@ function(opentrack_boilerplate n)
opentrack_is_target_c_only(is-c-only "${${n}-all}")
if(NOT is-c-only)
opentrack_qt(${n})
+ else()
+ set(arg_NO-QT TRUE)
endif()
if(arg_NO-QT)