fixed: this test code slipped through in 9737538708

sorry about that
This commit is contained in:
Arne Morten Kvarving
2017-12-21 13:05:00 +01:00
parent f730e9bc80
commit 3a60e567bb

View File

@@ -144,7 +144,7 @@ function (opm_cmake_config name)
# put this in the right system location; if we have binaries then it
# should go in the arch-specific lib/ directory, otherwise use the
# common/noarch lib/ directory (these targets come from UseMultiArch)
if (TARGET ${name})
if (${name}_TARGET)
set (_pkg_dir ${CMAKE_INSTALL_LIBDIR})
else ()
set (_pkg_dir lib)