Skip to content

Commit

Permalink
CMake toolchain: Fix pkg-config support
Browse files Browse the repository at this point in the history
`PKG_CONFIG_EXECUTABLE` must be a cache variable, otherwise only the first call to `find_program(PkgConfig)` succeeds.
  • Loading branch information
glebm authored Jul 1, 2022
1 parent 386f83c commit f40b1b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/toolchain-nxdk.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ set(_CMAKE_C_IPO_SUPPORTED_BY_CMAKE YES)
set(_CMAKE_C_IPO_MAY_BE_SUPPORTED_BY_COMPILER YES)
set(CMAKE_C_COMPILE_OPTIONS_IPO -flto)

SET(PKG_CONFIG_EXECUTABLE "${NXDK_DIR}/bin/nxdk-pkg-config")
set(PKG_CONFIG_EXECUTABLE "${NXDK_DIR}/bin/nxdk-pkg-config" CACHE STRING "Path to pkg-config")

0 comments on commit f40b1b6

Please sign in to comment.