]> git.lizzy.rs Git - dragonblocks_alpha.git/blobdiff - src/version.cmake
Out of source builds: keep source directory clean
[dragonblocks_alpha.git] / src / version.cmake
index f6e2306c9c7ae8cfe79678b03f092477c8105ccb..5befe41c558540e4a4a75b05eb5f8e18907f543d 100644 (file)
@@ -10,9 +10,7 @@ if("${GIT_VERSION}" STREQUAL "")
        )
 endif()
 
-set(VERSION_DEF "const char *version = \"${GIT_VERSION}\";")
-
 configure_file(
-       ${SOURCE_DIR}/version.h.in
-       ${SOURCE_DIR}/version.h
+       version.h.in
+       ${BINARY_DIR}/version.h
 )