From 20764c4abe9cf303ef054ab45d2367d615b11ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Skjelsb=C3=A6k?= Date: Thu, 21 Nov 2024 19:13:09 +0100 Subject: [PATCH] Using CMAKE_INSTALL_INCLUDEDIR for installing includes. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d02af0718..cf41320c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,7 +81,7 @@ if(MAGIC_ENUM_OPT_INSTALL) install( DIRECTORY ${PROJECT_SOURCE_DIR}/include/${PROJECT_NAME} - DESTINATION include + DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}" FILES_MATCHING PATTERN "${PROJECT_INCLUDE_HEADER_PATTERN}" )