-
Notifications
You must be signed in to change notification settings - Fork 76
Description
Hi, when i install tmxlite through vcpkg, for some reason, cmake doesn't locate its package.
Here is the vcpkg installation logs...
x@x-MacBook-Air ~ % vcpkg install tmxlite
Computing installation plan...
The following packages will be built and installed:
tmxlite[core]:x64-osx -> 1.3.0#1
Detecting compiler hash for triplet x64-osx...
Restored 0 package(s) from /Users/x/.cache/vcpkg/archives in 955.6 us. Use --debug to see more details.
Installing 1/1 tmxlite:x64-osx...
Building tmxlite[core]:x64-osx...
-- Downloading https://github.com/fallahn/tmxlite/archive/v1.3.0.tar.gz -> fallahn-tmxlite-v1.3.0.tar.gz...
-- Extracting source /Users/x/vcpkg/downloads/fallahn-tmxlite-v1.3.0.tar.gz
-- Using source at /Users/x/vcpkg/buildtrees/tmxlite/src/v1.3.0-2dee8955a2.clean
-- Found external ninja('1.11.1').
-- Configuring x64-osx
-- Building x64-osx-dbg
-- Building x64-osx-rel
-- Installing: /Users/x/vcpkg/packages/tmxlite_x64-osx/share/tmxlite/copyright
-- Performing post-build validation
-- Performing post-build validation done
Stored binary cache: "/Users/x/.cache/vcpkg/archives/8d/8d923e67f10c721514926fa30aa2c1b006e549f180ecc49cb91e1e6d1e878126.zip"
Elapsed time to handle tmxlite:x64-osx: 37.01 sTotal elapsed time: 40.47 s
The CMakeLists.txt contains this...
cmake_minimum_required(VERSION 3.23)
project(testapp CXX)
set(CMAKE_OSX_DEPLOYMENT_TARGET "12.0")
set(CMAKE_CXX_STANDARD 17)
file(GLOB_RECURSE SRC ${CMAKE_SOURCE_DIR}/src/*.cpp)
file(GLOB_RECURSE HDR ${CMAKE_SOURCE_DIR}/src/*.h)
add_executable(testapp ${SRC} ${HDR})
find_package(tmxlite REQUIRED)
target_link_libraries(testapp PRIVATE ${TMXLITE_LIBRARIES})
And the following is the cmake errors when i try to generate project files...
CMake Error at /Users/x/vcpkg/scripts/buildsystems/vcpkg.cmake:833 (_find_package):
By not providing "Findtmxlite.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "tmxlite", but
CMake did not find one.Could not find a package configuration file provided by "tmxlite" with any
of the following names:tmxliteConfig.cmake tmxlite-config.cmakeAdd the installation prefix of "tmxlite" to CMAKE_PREFIX_PATH or set
"tmxlite_DIR" to a directory containing one of the above files. If
"tmxlite" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:12 (find_package)