aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2017-10-06 14:30:26 +0200
committerPierre Ossman <ossman@cendio.se>2017-10-06 14:56:22 +0200
commit2699967aadd7e9609b1de7ee5f0215ff57f89a20 (patch)
tree6e08a9ae71a155120b728f6d249bf56c7bf40426
parentc27f5da1b789aa8aaf952d74e0562db50691b23a (diff)
downloadtigervnc-2699967aadd7e9609b1de7ee5f0215ff57f89a20.tar.gz
tigervnc-2699967aadd7e9609b1de7ee5f0215ff57f89a20.zip
Improve test if library is a CMake target
Newer CMake complains when you try to get the property of something that isn't a target so use the specific if operator instead.
-rw-r--r--cmake/Modules/CMakeMacroLibtoolFile.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmake/Modules/CMakeMacroLibtoolFile.cmake b/cmake/Modules/CMakeMacroLibtoolFile.cmake
index 1a3ab7cc..9d04ef56 100644
--- a/cmake/Modules/CMakeMacroLibtoolFile.cmake
+++ b/cmake/Modules/CMakeMacroLibtoolFile.cmake
@@ -43,8 +43,7 @@ macro(libtool_create_control_file _target)
else()
# No shared library extension matched. Check whether target is a CMake
# target.
- get_target_property(_ltp ${library} TYPE)
- if(_ltp OR ${library} STREQUAL "general")
+ if(TARGET ${library})
# Target is a CMake target, so ignore (CMake targets are static
# libs in TigerVNC.)
elseif(${library} STREQUAL "-Wl,-Bstatic")