From b0ae6425ca39cdea393878ca2d8600d42b771a57 Mon Sep 17 00:00:00 2001 From: Xeverous <20820409+Xeverous@users.noreply.github.com> Date: Thu, 30 May 2019 10:59:45 +0200 Subject: [PATCH] add alias nana::nana in CMakeLists.txt This commit adds the alias to allow the use of nana::nana in other projects as per guideline https://gist.github.com/mbinna/c61dbb39bca0e4fb7d1f73b0d66a4fd1#using-a-library-defined-in-the-same-cmake-tree-should-look-the-same-as-using-an-external-library. This change should not break anything, it only adds an alternative name --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e9252dce..3d842ebd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,6 +30,7 @@ project(nana VERSION 1.6.2 ####################### Main setting of Nana targets, sources and installs ##################### add_library(nana) +add_library(nana::nana ALIAS nana) target_compile_features(nana PUBLIC cxx_std_17) # need after cxx_std_14 or cxx_std_17 ??