diff --git a/.gitignore b/.gitignore index 012aa3a..4325334 100644 --- a/.gitignore +++ b/.gitignore @@ -56,4 +56,6 @@ Thumbs.db # Dependencies deps/ -vendor/ +vendor/ + +src/version.hpp diff --git a/CMakeLists.txt b/CMakeLists.txt index f0c9e47..165e00e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,10 +23,9 @@ set(PROJECT_VERSION "${CURRENT_YEAR}.${CURRENT_MONTH}${CURRENT_DAY}.${CURRENT_HO string(TIMESTAMP RELEASE_DATE "%Y-%m-%d") # Configure version.hpp file -configure_file( - "${CMAKE_CURRENT_SOURCE_DIR}/src/version.hpp.in" - "${CMAKE_CURRENT_BINARY_DIR}/src/version.hpp" - @ONLY +file(GENERATE + OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/src/version.hpp" + INPUT "${CMAKE_CURRENT_SOURCE_DIR}/src/version.hpp.in" ) # Set CMAKE_MODULE_PATH to include our custom find modules diff --git a/src/version.hpp b/src/version.hpp index ec52c09..5354116 100644 --- a/src/version.hpp +++ b/src/version.hpp @@ -12,4 +12,4 @@ const std::string RELEASE_DATE = "NEVER"; const std::string AUTHOR = "j842"; const std::string LICENSE = "MIT"; -} // namespace dropshell \ No newline at end of file +} // namespace dropshell