Skip to content

Commit

Permalink
if(EXISTS) needs a full path
Browse files Browse the repository at this point in the history
  • Loading branch information
multiplemonomials committed Oct 14, 2023
1 parent 95f39ad commit db4fb1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/compile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
with:
submodules: true
- name: Install libusb and ucrt64 GCC compiler
shell: C:\shells\msys2bash.cmd
shell: bash
run: |
pacman -S mingw-w64-ucrt-x86_64-libusb mingw-w64-ucrt-x86_64-gcc ninja
- name: Compile project
shell: msys2bash.cmd
shell: bash
run: |
mkdir build
cd build
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)

find_package(USB1 REQUIRED)

if(NOT EXISTS CLI11/LICENSE)
if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}}/CLI11/LICENSE")
message(FATAL_ERROR "CLI11 submodule missing, please run 'git submodule update --init'")
endif()

Expand Down

0 comments on commit db4fb1e

Please sign in to comment.