cmake: fixed undefined ${CMAKE_INSTALL_LIBDIR}

This commit is contained in:
Oleg Artenii 2018-09-14 09:24:40 +03:00 committed by GitHub
parent e6bde7819c
commit fd39f7efb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()