cmake 找不到配置文件为glfw 3.3.8

mf98qq94  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(65)

控制台显示此

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提前感谢

n9vozmp4

n9vozmp41#

我将mingw32更改为mingw64以使用64位lib

相关问题