aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Dahl <post@lespocky.de>2019-12-04 21:22:03 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-12-05 11:56:39 +0100
commit1cc9cde3448cdd2e000886a26acf1caac2db7cf1 (patch)
tree88ff39f3e8f0c7b666fa7d780aa0a288d57663aa /src
parent22264569de1a894991b8876caf420b09bab1aa46 (diff)
downloadcmocka-1cc9cde3448cdd2e000886a26acf1caac2db7cf1.tar.gz
cmocka-1cc9cde3448cdd2e000886a26acf1caac2db7cf1.tar.xz
cmocka-1cc9cde3448cdd2e000886a26acf1caac2db7cf1.zip
build: Export CMake config with namespace 'cmocka::'
The internal targets use 'target_link_libraries' with cmocka::cmocka and so should external users of the lib. Fixes: e4c51ce ("cmake: Export cmake config for cmocka") Signed-off-by: Alexander Dahl <post@lespocky.de> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 2048a64..155c347 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -75,6 +75,7 @@ install(TARGETS cmocka
COMPONENT ${PROJECT_NAME})
install(EXPORT cmocka-config
+ NAMESPACE cmocka::
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/cmocka)
if (UNIT_TESTING)