79136092

Date: 2024-10-29 06:56:23
Score: 1
Natty:
Report link

The error is caused by find_package looking into SDL directory in my project root directory.

The error message reviles the solution by itself, I had to set CMAKE_PREFIX_PATH to point find_package to the correct SDL build

set(CMAKE_PREFIX_PATH "${CMAKE_BINARY_DIR}/sdl" ${CMAKE_PREFIX_PATH})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: siery