Skip to content

Commit

Permalink
echo vcpkg root
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Dec 25, 2023
1 parent ac36ab1 commit 1b84a6d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ jobs:
run: |
vcpkg install cli11
vcpkg list
echo %VCPKG_ROOT%
echo ${VCPKG_ROOT}
- name: Build Ninja
run: |
Expand Down
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@ add_compile_options(-Wall)
add_compile_options(-pedantic)

# vcpkg (preparation)
include($ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake)
if ($ENV{GITHUB_WORKSPACE})
if (WIN32)
include($ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake)
elseif (APPLE)
include($ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake)
elseif (UNIX)
include($ENV{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake)
endif ()
endif ()

# vcpkg
find_package(CLI11 CONFIG REQUIRED)
Expand Down

0 comments on commit 1b84a6d

Please sign in to comment.