控制台显示此
Could not find a configuration file for package "glfw3" that is compatible with requested version "3.3.8".
The following configuration files were considered but not accepted:
glfw3/glfw3Config.cmake, version: 3.3.8 (64bit)
字符串
下面是我的cmakelist文件:
cmake_minimum_required(VERSION 3.26)
set(CMAKE_TOOLCHAIN_FILE "my path is correct")
project(project)
set(CMAKE_CXX_STANDARD 23)
add_executable(project main.cpp)
find_package(glfw3 3.3.8 CONFIG REQUIRED PATHS "vcpkg_installed/x64-windows/share")
find_package(glad CONFIG REQUIRED PATHS "vcpkg_installed/x64-windows/share")
target_link_libraries(project PRIVATE glfw)
型
当前的cmake版本是3.27.0提前感谢
1条答案
按热度按时间n9vozmp41#
我将mingw32更改为mingw64以使用64位lib