tarantool / small

Specialized memory allocators
Other
102 stars 22 forks source link

test: fix test build for Debian 9 and alike #84

Closed nshy closed 1 year ago

nshy commented 1 year ago

Looks like Debian 9 CMake version is old. According to CMake documentation OBJECT library can be used in target_link_libraries since 3.12

CMake Error at src/lib/small/test/CMakeLists.txt:9 (target_link_libraries):
  Target "small_unit" of type OBJECT_LIBRARY may not be linked into another
  target.  One may link only to STATIC or SHARED libraries, or to executables
  with the ENABLE_EXPORTS property set.