Silence CMake warning if projectM-Eval is not found externally.

Also output additional information in both cases (found/not found).
This commit is contained in:
Kai Blaschke
2025-11-04 13:51:29 +01:00
parent 8df329f8c2
commit 537add365f
2 changed files with 7 additions and 2 deletions

View File

@ -105,7 +105,12 @@ if(ENABLE_SYSTEM_GLM)
endif()
if(ENABLE_SYSTEM_PROJECTM_EVAL)
find_package(projectM-Eval)
find_package(projectM-Eval QUIET)
if(NOT TARGET projectM::Eval)
message(STATUS "projectM-Eval could not be found externally. Using sources from vendor dir (if present).")
else()
message(STATUS "Found external projectM-Eval: Version ${projectM-Eval_VERSION}")
endif()
endif()
if(NOT BUILD_SHARED_LIBS AND CMAKE_SYSTEM_NAME STREQUAL "Windows")

View File

@ -3,6 +3,6 @@ if(NOT ENABLE_SYSTEM_GLM)
endif()
add_subdirectory(hlslparser)
if(NOT TARGET projectM::Eval)
add_subdirectory(projectm-eval)
add_subdirectory(projectm-eval)
endif()
add_subdirectory(SOIL2)