From: Oleg Artenii Date: Fri, 14 Sep 2018 06:24:40 +0000 (+0300) Subject: cmake: fixed undefined ${CMAKE_INSTALL_LIBDIR} X-Git-Tag: v2.11.0-rc1~204^2~3^2~3^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd39f7efb1337d57ad1411d527abec75adc7f50e;p=icinga2 cmake: fixed undefined ${CMAKE_INSTALL_LIBDIR} --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 8cac0a1f5..9f5ca4c0d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,7 @@ add_library(utf8::cpp ALIAS utf8cpp) if(WIN32 AND NOT CYGWIN) set(DEF_INSTALL_CMAKE_DIR CMake) else() + include(GNUInstallDirs) # define CMAKE_INSTALL_* set(DEF_INSTALL_CMAKE_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/utf8cpp) endif()