Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2019-07-31 17:15:38 +0300
committerSebastian Parborg <darkdefende@gmail.com>2019-07-31 17:18:17 +0300
commitfb03a86b1bff047f95d42f9c23619cb9a89c9827 (patch)
tree9314c007b5f9e3fc9185ac573f85b8df28a19f85 /CMakeLists.txt
parentb0531227d40e2b4c147367fe87e311efd92de80d (diff)
Have CMake be more strict when optional x11 libraries are missing but enabled
Previously cmake would silently disable features that depended on certain x11 libraries if they were not found. Now we instead error out and inform the user that these are missing but optional. Reviewed By: Brecht Differential Revision: http://developer.blender.org/D5380
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4dd165b0185..f0ca98c44a3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -852,7 +852,8 @@ if(WITH_X11)
if(X11_Xinput_LIB)
list(APPEND PLATFORM_LINKLIBS ${X11_Xinput_LIB})
else()
- set(WITH_X11_XINPUT OFF)
+ message(FATAL_ERROR "LibXi not found. Disable WITH_X11_XINPUT if you
+ want to build without tablet support")
endif()
endif()
@@ -863,7 +864,8 @@ if(WITH_X11)
if(X11_Xxf86vmode_LIB)
list(APPEND PLATFORM_LINKLIBS ${X11_Xxf86vmode_LIB})
else()
- set(WITH_X11_XF86VMODE OFF)
+ message(FATAL_ERROR "libXxf86vm not found. Disable WITH_X11_XF86VMODE if you
+ want to build without")
endif()
endif()
@@ -871,7 +873,8 @@ if(WITH_X11)
if(X11_Xfixes_LIB)
list(APPEND PLATFORM_LINKLIBS ${X11_Xfixes_LIB})
else()
- set(WITH_X11_XFIXES OFF)
+ message(FATAL_ERROR "libXfixes not found. Disable WITH_X11_XFIXES if you
+ want to build without")
endif()
endif()
@@ -881,7 +884,8 @@ if(WITH_X11)
if(X11_Xrender_LIB)
list(APPEND PLATFORM_LINKLIBS ${X11_Xrender_LIB})
else()
- set(WITH_X11_ALPHA OFF)
+ message(FATAL_ERROR "libXrender not found. Disable WITH_X11_ALPHA if you
+ want to build without")
endif()
endif()