[KDevPlatform] 30818a0 Revert "Merge branch 'git/extensive_version_check'

Andreas Pakulat apaku at gmx.de
Wed Dec 8 18:45:50 UTC 2010


commit 30818a0613c963874a2a514a3a685b1d98cd0bdf
branch master
Author: Andreas Pakulat <apaku at gmx.de>
Date:   Wed Dec 8 19:44:04 2010 +0100

    Revert "Merge branch 'git/extensive_version_check'"
    
    This reverts commit 692d0ea9871effd07ea45913ad3a5be25c41473a, reversing
    changes made to 540d8774daedd28bb6a0c4c4776dfc2864730ed8.
    
    Reverting this extensive version check, I can't get my head around doing
    the right maths with the actual and the requested version to produce
    meaningful error messages.
    
    The logic is more complex than I anticipated and IMHO not worht the
    effort needed to get it right.
    
    CCMAIL: kdevelop-devel at kdevelop.org

diff --git a/KDevPlatformConfig.cmake.in b/KDevPlatformConfig.cmake.in
index 47fe998..dfd16fc 100644
--- a/KDevPlatformConfig.cmake.in
+++ b/KDevPlatformConfig.cmake.in
@@ -22,12 +22,6 @@
 
 get_filename_component(_KDEVPLATFORM_CURRENT_DIR  "${CMAKE_CURRENT_LIST_FILE}" PATH)
 
-if( "${KDevPlatform_VERSION}" VERSION_GREATER "${KDevPlatform_FIND_VERSION_MAJOR}.${KDevPlatform_FIND_VERSION_MINOR}.59" )
-    # Error out as we detected that an incompatible API version was requested (smaller minor version)
-    message(FATAL_ERROR "KDevPlatform ${KDevPlatform_VERSION} changed API and is not compatible to the requested version ${KDevPlatform_FIND_VERSION}")
-    set(KDevPlatform_FOUND FALSE)
-endif( "${KDevPlatform_VERSION}" VERSION_GREATER "${KDevPlatform_FIND_VERSION_MAJOR}.${KDevPlatform_FIND_VERSION_MINOR}.59" )
-
 if(NOT WIN32)
 # This is needed on non-win32 platforms, as lib-install-dir might be in a 
 # totally different prefix than include-install-dir. So instead hardcode the
@@ -75,4 +69,3 @@ mark_as_advanced(
     KDEVPLATFORM_DOCUMENTATION_LIBRARIES
     KDEVPLATFORM_TESTS_LIBRARIES
 )
-




More information about the KDevelop-devel mailing list