*** old/CMakeLists.txt 2014-01-08 14:10:40.035843263 +0530 --- new/CMakeLists.txt 2014-01-08 14:11:30.987970363 +0530 *************** setup_target_project(${CoreLibName} Core *** 1169,1175 **** # Generate git-version.cpp at build time. add_custom_target(GitVersion ALL ! DEPENDS something_that_never_exists) add_custom_command(OUTPUT something_that_never_exists COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR} -P ${CMAKE_CURRENT_SOURCE_DIR}/git-version.cmake) --- 1169,1175 ---- # Generate git-version.cpp at build time. add_custom_target(GitVersion ALL ! ) # DEPENDS something_that_never_exists) add_custom_command(OUTPUT something_that_never_exists COMMAND ${CMAKE_COMMAND} -DSOURCE_DIR=${CMAKE_CURRENT_SOURCE_DIR} -P ${CMAKE_CURRENT_SOURCE_DIR}/git-version.cmake)