Skip to content

Commit 537add3

Browse files
committed
Silence CMake warning if projectM-Eval is not found externally.
Also output additional information in both cases (found/not found).
1 parent 8df329f commit 537add3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,12 @@ if(ENABLE_SYSTEM_GLM)
105105
endif()
106106

107107
if(ENABLE_SYSTEM_PROJECTM_EVAL)
108-
find_package(projectM-Eval)
108+
find_package(projectM-Eval QUIET)
109+
if(NOT TARGET projectM::Eval)
110+
message(STATUS "projectM-Eval could not be found externally. Using sources from vendor dir (if present).")
111+
else()
112+
message(STATUS "Found external projectM-Eval: Version ${projectM-Eval_VERSION}")
113+
endif()
109114
endif()
110115

111116
if(NOT BUILD_SHARED_LIBS AND CMAKE_SYSTEM_NAME STREQUAL "Windows")

vendor/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ if(NOT ENABLE_SYSTEM_GLM)
33
endif()
44
add_subdirectory(hlslparser)
55
if(NOT TARGET projectM::Eval)
6-
add_subdirectory(projectm-eval)
6+
add_subdirectory(projectm-eval)
77
endif()
88
add_subdirectory(SOIL2)

0 commit comments

Comments
 (0)