Browse Source

Platform: better checks for magnum-info compilation.

In particular GLX is not available on OS X.
pull/51/head
Vladimír Vondruš 12 years ago
parent
commit
6e2dcec59c
  1. 8
      src/Magnum/Platform/CMakeLists.txt

8
src/Magnum/Platform/CMakeLists.txt

@ -177,15 +177,13 @@ endif()
# Magnum Info
if(WITH_MAGNUMINFO)
if(NOT UNIX AND NOT CORRADE_TARGET_NACL)
message(FATAL_ERROR "magnum-info is not available on this platform. Set WITH_MAGNUMINFO to OFF to skip building it.")
endif()
add_executable(magnum-info magnum-info.cpp)
if(UNIX AND NOT CORRADE_TARGET_NACL)
if(UNIX AND NOT CORRADE_TARGET_NACL AND NOT APPLE)
target_link_libraries(magnum-info MagnumWindowlessGlxApplication ${X11_LIBRARIES})
elseif(CORRADE_TARGET_NACL)
target_link_libraries(magnum-info MagnumWindowlessNaClApplication ppapi_cpp ppapi)
else()
message(FATAL_ERROR "magnum-info is not available on this platform. Set WITH_MAGNUMINFO to OFF to skip building it.")
endif()
target_link_libraries(magnum-info Magnum)

Loading…
Cancel
Save