Browse Source

python: don't try to find applications that aren't on target platform.

Makes the CMake log output less confusing.
pull/8/head
Vladimír Vondruš 7 years ago
parent
commit
41609aceef
  1. 17
      src/python/magnum/CMakeLists.txt

17
src/python/magnum/CMakeLists.txt

@ -33,10 +33,19 @@ find_package(Magnum COMPONENTS
Trade Trade
GlfwApplication GlfwApplication
Sdl2Application Sdl2Application)
WindowlessEglApplication # Find platform-specific apps only on the platforms where it matters, so we
WindowlessGlxApplication # don't get confusing -- Could NOT find WindowlessWglApplication on Linux and
WindowlessWglApplication) # 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 set(magnum_SRCS
magnum.cpp magnum.cpp

Loading…
Cancel
Save