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: vonr...@kde.org
          Reporter: m...@dawidwrobel.com
                CC: kde-wind...@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 watching all bug changes.

Reply via email to