aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/cmake
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2019-10-01 12:27:11 -0400
committerXavier Claessens <xclaesse@gmail.com>2019-10-01 13:30:15 -0400
commit7d9e58f12568de16625c6f063e1e8c50920a012e (patch)
tree6142b1615e8a287fe9709250255888a2a2a9daa5 /mesonbuild/cmake
parent90a12ed3f06e616653f8b78d9966cc80ab331d27 (diff)
downloadmeson-7d9e58f12568de16625c6f063e1e8c50920a012e.zip
meson-7d9e58f12568de16625c6f063e1e8c50920a012e.tar.gz
meson-7d9e58f12568de16625c6f063e1e8c50920a012e.tar.bz2
cmake: Add support for normal libraries
Without this, set_target_properties() on those libraries won't be catched, for example when setting the SOVERSION.
Diffstat (limited to 'mesonbuild/cmake')
-rw-r--r--mesonbuild/cmake/traceparser.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mesonbuild/cmake/traceparser.py b/mesonbuild/cmake/traceparser.py
index 78ee5ae..7db0cd3 100644
--- a/mesonbuild/cmake/traceparser.py
+++ b/mesonbuild/cmake/traceparser.py
@@ -228,8 +228,10 @@ class CMakeTraceParser:
# Simulate the ALIAS with INTERFACE_LINK_LIBRARIES
self.targets[args[0]] = CMakeTarget(args[0], 'ALIAS', {'INTERFACE_LINK_LIBRARIES': [args[1]]})
+ elif 'OBJECT' in args:
+ return self._gen_exception('add_library', 'OBJECT libraries are not supported', tline)
else:
- return self._gen_exception('add_library', 'non imported / interface libraries are not supported', tline)
+ self.targets[args[0]] = CMakeTarget(args[0], 'NORMAL', {})
def _cmake_add_custom_command(self, tline: CMakeTraceLine):
# DOC: https://cmake.org/cmake/help/latest/command/add_custom_command.html