X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=CMakeLists.txt;h=af3f3a39d1d37e02f8134f7865e8a269e41e054f;hb=bef2224798775ce371f85b225ef80b3b03197c83;hp=04aa07ac24ae0cfe9fe01a30fdf2d29d7021844c;hpb=22c14264fd1ad9bd0752eb4f711c3d34bfd8abbf;p=quassel.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 04aa07ac..af3f3a39 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -164,7 +164,8 @@ endif(WITH_DBUS) add_executable(genversion ${CMAKE_SOURCE_DIR}/src/common/genversion.cpp) target_link_libraries(genversion ${QT_LIBRARIES} ${QT_CORE_LIB_DEPENDENCIES}) -add_custom_target(genversion_run ALL ${CMAKE_BINARY_DIR}/genversion +get_target_property(GENVERSION_EXECUTABLE genversion LOCATION) +add_custom_target(genversion_run ALL ${GENVERSION_EXECUTABLE} ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR}/src/common/version.gen) add_dependencies(genversion_run genversion)