Skip to content

Commit

Permalink
vcpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed Nov 12, 2023
1 parent e96e54f commit c1a6beb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
name: "Windows MSVC",
enabled: 1,
os: windows-latest,
deps: "vcpkg install liblo --triplet x86-windows --host-triplet x86-windows",
config: "cmake -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DWERROR=1 -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON .",
deps: "",
config: "cmake -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DWERROR=1 .",

Check failure on line 17 in .github/workflows/ccpp.yml

View workflow job for this annotation

GitHub Actions / yamllint

17:81 [line-length] line too long (106 > 80 characters)
build: "cmake --build .",
test: "ctest --output-on-failure"
}
Expand Down
14 changes: 9 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ else()
set(GUI_FOUND FALSE)
endif(FLTK_FOUND)

find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
pkg_check_modules(LIBLO liblo>=0.28)
if(NOT (${CMAKE_SYSTEM_NAME} STREQUAL "Windows"))
pkg_check_modules(JACK jack)
if(MSVC)
find_package(liblo 0.28)
else()
find_package(PkgConfig)
if(PKG_CONFIG_FOUND)
pkg_check_modules(LIBLO liblo>=0.28)
if(NOT (${CMAKE_SYSTEM_NAME} STREQUAL "Windows"))
pkg_check_modules(JACK jack)
endif()
endif()
endif()

Expand Down

0 comments on commit c1a6beb

Please sign in to comment.