diff options
| author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2016-12-08 01:11:44 +0200 |
|---|---|---|
| committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2017-04-16 19:12:43 +0300 |
| commit | 5610b6440617246972105a93ca6a35c9ed045db4 (patch) | |
| tree | 0459a58382ce3addd3e25b2c7b158a87c17b635a /CMakeLists.txt | |
| parent | 9847712d62ab55c5aff4abaf92c9093566b50cd1 (diff) | |
Remove libdrm_omap dependency
The library is just a wrapper around ioctls. It doesn't provide much
value, and its API is marked as experimental and should thus not be
expected to be stable. As third party library dependencies are always
painful for distributors and packagers, use the ioctls directly for now.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 57088bc..73b610e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,6 +8,7 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) include(CheckCXXCompilerFlag) +include(CheckSymbolExists) IF(NOT CMAKE_BUILD_TYPE) message(STATUS "Setting build type to 'Release' as none was specified.") @@ -66,10 +67,7 @@ endif() find_package(PkgConfig REQUIRED) pkg_check_modules(LIBDRM libdrm>=2.4.64 REQUIRED) -pkg_check_modules(LIBDRM_OMAP libdrm_omap) -if(LIBDRM_OMAP_FOUND) - add_definitions(-DHAS_LIBDRM_OMAP) -endif() +check_symbol_exists(DRM_IOCTL_OMAP_GEM_NEW "stdint.h;drm/omap_drm.h" HAVE_OMAP_DRM) enable_testing() @@ -86,3 +84,6 @@ if(KMSXX_ENABLE_PYTHON) endif() add_custom_target(docs SOURCES "README.md") + +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in + ${CMAKE_CURRENT_BINARY_DIR}/config.h) |
