llvm/mlir/unittests/SDBM/CMakeLists.txt
Alex Zinenko 6aae7b2e9a CMake build: force-link SDBM lib into SDBM unit tests
Otherwise, GCC < 7 does not link in the dialect registration, fails to look up
    the dialect in the context and cannot construct SDBM objects.

--

PiperOrigin-RevId: 249259758
2019-06-01 19:54:53 -07:00

8 lines
151 B
CMake

add_mlir_unittest(MLIRSDBMTests
SDBMTest.cpp
)
target_link_libraries(MLIRSDBMTests
PRIVATE
MLIRSDBM
)
whole_archive_link(MLIRSDBMTests MLIRSDBM)