mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2025-12-01 12:11:20 +00:00
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:
@ -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")
|
||||
|
||||
2
vendor/CMakeLists.txt
vendored
2
vendor/CMakeLists.txt
vendored
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user