diff --git a/.gitignore b/.gitignore index bf9805f..3747f61 100644 --- a/.gitignore +++ b/.gitignore @@ -21,5 +21,3 @@ debian/uhub.postrm.debhelper debian/uhub.prerm.debhelper debian/uhub.substvars uhub-passwd -src/version.h -src/system.h diff --git a/CMakeLists.txt b/CMakeLists.txt index d73a383..c06d003 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,6 +77,7 @@ check_symbol_exists(memmem string.h HAVE_MEMMEM) check_symbol_exists(strndup string.h HAVE_STRNDUP) include_directories("${PROJECT_SOURCE_DIR}") +include_directories("${PROJECT_BINARY_DIR}") include_directories(${SQLITE3_INCLUDE_DIRS}) link_directories(${SQLITE3_LIBRARY_DIRS}) @@ -220,8 +221,8 @@ if (SYSTEMD_SUPPORT) add_definitions(-DSYSTEMD) endif() -configure_file ("${PROJECT_SOURCE_DIR}/version.h.in" "${PROJECT_SOURCE_DIR}/version.h") -configure_file ("${PROJECT_SOURCE_DIR}/system.h.in" "${PROJECT_SOURCE_DIR}/system.h") +configure_file ("${PROJECT_SOURCE_DIR}/version.h.in" "${PROJECT_BINARY_DIR}/version.h") +configure_file ("${PROJECT_SOURCE_DIR}/system.h.in" "${PROJECT_BINARY_DIR}/system.h") # mark_as_advanced(FORCE CMAKE_BUILD_TYPE) # if (RELEASE)