diff --git a/CMakeLists.txt b/CMakeLists.txt index 5e85aeff..1abdd772 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,7 +83,6 @@ target_include_directories(yaml PUBLIC install( FILES include/yaml.h - ${config_h} DESTINATION include COMPONENT Development ) diff --git a/configure.ac b/configure.ac index 75e40e5b..7a1973a9 100644 --- a/configure.ac +++ b/configure.ac @@ -26,7 +26,7 @@ m4_define([YAML_AGE], 0) AC_PREREQ(2.59) AC_INIT([yaml], [YAML_MAJOR.YAML_MINOR.YAML_PATCH], [YAML_BUGS]) AC_CONFIG_AUX_DIR([config]) -AC_CONFIG_HEADERS([config.h]) +AC_CONFIG_HEADERS([include/config.h]) AM_INIT_AUTOMAKE([1.9 foreign]) # Define macro variables for the package version numbers. diff --git a/src/yaml_private.h b/src/yaml_private.h index fe25141d..a49bdfcc 100644 --- a/src/yaml_private.h +++ b/src/yaml_private.h @@ -1,5 +1,5 @@ #if HAVE_CONFIG_H -#include +#include "config.h" #endif #include