Skip to content
Snippets Groups Projects
Select Git revision
  • 5b53e7ce1c20b679070d474e845dc032fd553ba3
  • master default protected
  • dev_moritz
  • 0.2.0
  • 0.1.0
5 results

30-vcpkg-cmake.ps1

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    30-vcpkg-cmake.ps1 300 B
    # SPDX-License-Identifier: AGPL-3.0-or-later
    
    #
    # Executes CMake with vcpkg toolchain file
    #
    function vcpkg-cmake {
    	Must-Run "Program Files/CMake/bin/cmake.exe" '-DCMAKE_TOOLCHAIN_FILE=/vcpkg/scripts/buildsystems/vcpkg.cmake'
    }
    
    # Use vcpkg-cmake by default
    Set-Alias -Name cmake -Value vcpkg-cmake