Skip to content

Commit

Permalink
[cmake] Make AML an optional dependency on Linux
Browse files Browse the repository at this point in the history
There is some hardware that uses AML on Linux (ODROID-C1).
  • Loading branch information
fetzerch committed Sep 5, 2016
1 parent 3978e9c commit d5da49b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion project/cmake/CMakeLists.txt
Expand Up @@ -54,6 +54,7 @@ if(UNIX)
option(ENABLE_SDL "Enable SDL?" OFF)
if(CORE_SYSTEM_NAME STREQUAL linux OR CORE_SYSTEM_NAME STREQUAL freebsd)
option(ENABLE_X11 "Enable X11 support?" ON)
option(ENABLE_AML "Enable AML?" OFF)
endif()
option(ENABLE_OPTICAL "Enable optical support?" ON)
endif()
Expand Down Expand Up @@ -208,7 +209,7 @@ if(NOT WIN32)
endif()
endif()

if(CORE_SYSTEM_NAME STREQUAL android)
if(CORE_SYSTEM_NAME STREQUAL android OR CORE_SYSTEM_NAME STREQUAL linux)
core_optional_dep(AML)
elseif(CORE_SYSTEM_NAME STREQUAL rbpi)
core_require_dep(MMAL)
Expand Down

0 comments on commit d5da49b

Please sign in to comment.