0004-version-detect.patch 819 B

123456789101112131415161718
  1. Index: xc3sprog-r742/CMakeLists.txt
  2. ===================================================================
  3. --- xc3sprog-r742.orig/CMakeLists.txt 2014-09-23 17:17:42.507053279 +0800
  4. +++ xc3sprog-r742/CMakeLists.txt 2014-09-23 17:22:59.147040108 +0800
  5. @@ -30,13 +30,7 @@
  6. if(EXISTS ${PROJECT_SOURCE_DIR}/.git)
  7. set(VERSION_STRING "${xc3sprog_VERSION_MAJOR}.${xc3sprog_VERSION_MINOR}-git")
  8. else(EXISTS ${PROJECT_SOURCE_DIR}/.git)
  9. - FIND_PACKAGE(Subversion)
  10. - IF(Subversion_FOUND)
  11. - Subversion_WC_INFO(${PROJECT_SOURCE_DIR} Project)
  12. - set(VERSION_STRING "${xc3sprog_VERSION_MAJOR}.${xc3sprog_VERSION_MINOR}-svn${Project_WC_REVISION}")
  13. - ELSE(Subversion_FOUND)
  14. set(VERSION_STRING "unknown")
  15. - ENDIF(Subversion_FOUND)
  16. endif(EXISTS ${PROJECT_SOURCE_DIR}/.git)
  17. # Create suffix to eventually install inlib64