From 41609aceef348b5331b14e9edd1ae508ee1fe3c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 19 Oct 2019 23:48:57 +0200 Subject: [PATCH] python: don't try to find applications that aren't on target platform. Makes the CMake log output less confusing. --- src/python/magnum/CMakeLists.txt | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/python/magnum/CMakeLists.txt b/src/python/magnum/CMakeLists.txt index 12b5a86..55c9cf0 100644 --- a/src/python/magnum/CMakeLists.txt +++ b/src/python/magnum/CMakeLists.txt @@ -33,10 +33,19 @@ find_package(Magnum COMPONENTS Trade GlfwApplication - Sdl2Application - WindowlessEglApplication - WindowlessGlxApplication - WindowlessWglApplication) + Sdl2Application) +# Find platform-specific apps only on the platforms where it matters, so we +# don't get confusing -- Could NOT find WindowlessWglApplication on Linux and +# such +if(CORRADE_TARGET_UNIX OR MAGNUM_TARGET_GLES) + find_package(Magnum COMPONENTS WindowlessEglApplication) +endif() +if(CORRADE_TARGET_UNIX) + find_package(Magnum COMPONENTS WindowlessGlxApplication) +endif() +if(CORRADE_TARGET_WINDOWS) + find_package(Magnum COMPONENTS WindowlessWglApplication) +endif() set(magnum_SRCS magnum.cpp