[Craft] [Bug 439166] New: CMake fails to detect craft-provided svn on Windows

Dawid Wróbel bugzilla_noreply at kde.org
Fri Jun 25 21:47:18 BST 2021


https://bugs.kde.org/show_bug.cgi?id=439166

            Bug ID: 439166
           Summary: CMake fails to detect craft-provided svn on Windows
           Product: Craft
           Version: stable
          Platform: Other
                OS: Other
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Blueprints
          Assignee: vonreth at kde.org
          Reporter: me at dawidwrobel.com
                CC: kde-windows at kde.org
  Target Milestone: ---

SUMMARY
Despite adding self.buildDependencies["dev-utils/subversion"] to the blueprint,
CMake's FindSubversion fails to detect the svn.exe executable. This is because
the blueprint itself provides svn as a batch file (svn.bat) by copying it to
dev-utils\bin\svn.bat, however, the FindSubversion macro looks for
svn|svn.com|svn.exe, but not svn.bat 

STEPS TO REPRODUCE
1. Create CMakeLists.txt with following content:
cmake_minimum_required(VERSION 3.19)
project(FindPackageTest)

find_package(Subversion 1.4 REQUIRED)
2. run using 
cmake -D CMAKE_FIND_DEBUG_MODE=ON .

OBSERVED RESULT
Could NOT find Subversion (missing: Subversion_SVN_EXECUTABLE) (Required is at
least version "1.4")

EXPECTED RESULT
Svn should be found

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Kde-windows mailing list