CMake: use CMAKE_CURRENT_LIST_DIR instead of CmakeSourceDir.

pull/929/head
Kim Kulling 2016-06-30 00:42:08 +02:00
parent 19ba6448f0
commit 93caa17371
1 changed files with 2 additions and 1 deletions

View File

@ -81,7 +81,8 @@ IF(NOT GIT_COMMIT_HASH)
ENDIF(NOT GIT_COMMIT_HASH) ENDIF(NOT GIT_COMMIT_HASH)
configure_file( configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/revision.h.in ${CMAKE_CURRENT_LIST_DIR}/revision.h.in
# ${CMAKE_CURRENT_SOURCE_DIR}/revision.h.in
${CMAKE_CURRENT_BINARY_DIR}/revision.h ${CMAKE_CURRENT_BINARY_DIR}/revision.h
) )