From f47a40614d9eadbd7e7851817ff3cc4c9a925560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 23 Mar 2016 22:18:26 +0100 Subject: [PATCH] Properly create Magnum::Magnum aliased target for superprojects. --- src/Magnum/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Magnum/CMakeLists.txt b/src/Magnum/CMakeLists.txt index 72f3353e4..f973fc170 100644 --- a/src/Magnum/CMakeLists.txt +++ b/src/Magnum/CMakeLists.txt @@ -341,6 +341,6 @@ if(BUILD_TESTS) add_subdirectory(Test) endif() -# Magnum library and configure file for superprojects -set(MAGNUM_LIBRARY Magnum CACHE INTERNAL "") +# Magnum library target alias and configure file for superprojects +add_library(Magnum::Magnum ALIAS Magnum) set(_MAGNUM_CONFIGURE_FILE ${CMAKE_CURRENT_BINARY_DIR}/configure.h CACHE INTERNAL "")