KhronosGroup / KhronosGroup/OpenCL-Guide

Can't build using CMake on Windows

Open
#26 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
CMake
Stars
711
Forks
70
PR merge metrics
No merged PRs in 30d

Description

Following the Get Started on Windows I got this while configuring with CMake 3.26.1

> Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19045.
> Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
> CMake Error at cmake/Dependencies/glm/glm.cmake:19 (add_library):
> The target name "glm::glm" is reserved or not valid for certain CMake
> features, such as generator expressions, and may result in undefined
> behavior.
> Call Stack (most recent call first):
> cmake/Dependencies.cmake:10 (include)
> CMakeLists.txt:49 (include)
>
>
> CMake Error at cmake/Dependencies/glm/glm.cmake:20 (target_include_directories):
> Cannot specify include directories for target "glm::glm" which is not built
> by this project.
> Call Stack (most recent call first):
> cmake/Dependencies.cmake:10 (include)
> CMakeLists.txt:49 (include)
>

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Windows configuration with CMake 3.26.1 while reading cmake/Dependencies/glm/glm.cmake. Trace how it is included from cmake/Dependencies.cmake and CMakeLists.txt, then verify that configuration completes without the reported glm target errors; the missing Doxygen message is also part of the reported setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.