Find genversion.exe on Wintendo. Fixes BR #306, thanks to Hydrogen and SaroEngels!
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 1 Sep 2008 22:04:24 +0000 (00:04 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 1 Sep 2008 22:04:24 +0000 (00:04 +0200)
CMakeLists.txt

index 04aa07a..af3f3a3 100644 (file)
@@ -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)