diff --git a/CMakeLists.txt b/CMakeLists.txt
index d59e51d5..166bab1a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -115,6 +115,7 @@ set_target_properties(stdexec PROPERTIES
                       SOVERSION "${STDEXEC_VERSION_MAJOR}")
 
 # Declare the public include directories
+include(GNUInstallDirs)
 target_include_directories(stdexec INTERFACE
                            $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include/>
                            $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
@@ -276,7 +277,6 @@ endif()
 # Install targets ------------------------------------------------------------
 
 include(CPack)
-include(GNUInstallDirs)
 
 install(TARGETS stdexec
         DESTINATION ${CMAKE_INSTALL_LIBDIR}