aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2015-05-15 22:09:09 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2015-05-15 22:09:09 +0200
commit750f91b9c346a7576a837f18f2a9c391f0596f66 (patch)
treebab217451d3e5ee9871c6f662150e9eaafd8776b /CMakeLists.txt
parentfa0161cbf9bdf2041ffecc15eaf2615c1dca7a6b (diff)
downloadsherlock.lv2-750f91b9c346a7576a837f18f2a9c391f0596f66.tar.xz
update eo_ui submodule
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 3 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bd8ff03..e3dece2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -25,13 +25,11 @@ pkg_search_module(ELM REQUIRED elementary>=1.8)
include_directories(${ELM_INCLUDE_DIRS})
set(LIBS_UI ${LIBS_UI} ${ELM_LDFLAGS})
-if((${ELM_VERSION} VERSION_EQUAL "1.13.0") OR (${ELM_VERSION} VERSION_GREATER "1.13.0"))
- add_definitions("-DELM_HAS_FAKE")
-endif()
+pkg_search_module(ECORE_X OPTIONAL ecore-x)
-option(BUILD_X11_WRAPPER "Build X11 UI wrapper" ON)
-if(${BUILD_X11_WRAPPER})
+if($(ECORE_X_FOUND) AND ((${ELM_VERSION} VERSION_EQUAL "1.13.0") OR (${ELM_VERSION} VERSION_GREATER "1.13.0")))
set(X11_UI_WRAP "")
+ add_definitions("-DELM_HAS_FAKE")
else()
set(X11_UI_WRAP "#")
endif()