build: CMakeLists.txt cleanup, part 1
This is a first pass reorganization of CMake files in this repo.
It consists primarily of dead code/variable removal, simplification,
and reformatting by latest cmake-format.
bump to cmake_minimum_required(3.4), needed for ccache support.
simplify excessive use of generator expressions
clarify setting Windows install prefix if needed
remove unused DisplayServer variable
remove deprecated argument to endif()
remove unneeded CMAKE_VERBOSE_MAKEFILE hardcode.
remove extra CMAKE_MODULE_PATH
remove extra cmake_minimum_required
clarify why CMAKE_OSX_DEPLOYMENT_TARGET is pre-project().
sync FindVulkan.cmake from upstream CMake v3.8.0
Ensure Khronos repos use identical version of upstream FindVulkan.cmake
Copied from Modules/FindVulkan.cmake of
https://gitlab.kitware.com/cmake/cmake.git
tag: v3.8.0 (commit da7833c5bb1f331162d46a2c664a443c1c641089)
change LIBVK to Vulkan::Vulkan
change PYTHON_CMD to PYTHON_EXECUTABLE
external/CMakeLists.txt: edit comments for clarity
remove unneede variables not actually used by this repo.
Several CMake variables look as though copy/pasted from Vulkan-Loader,
but not actually used in this Vulkan-ValidationLayers code:
- FALLBACK_CONFIG_DIRS
- FALLBACK_DATA_DIRS
- SYSCONFDIR
- EXTRASYSCONFDIR
change deprecated $<CONFIGURATION> to $<CONFIG>
The $<CONFIGURATION> genexp is officially deprecated.
update .cmake-format.py 0.4.1
reformat using cmake-format 0.4.1
Change-Id: I7c08a79febfc99fa1f910d0a31171d69e808d00e
diff --git a/.cmake-format.py b/.cmake-format.py
index 9c173ac..07d2f99 100644
--- a/.cmake-format.py
+++ b/.cmake-format.py
@@ -1,4 +1,4 @@
-# Configuration for cmake-format (v0.3.6, circa Apr 2018)
+# Configuration for cmake-format (v0.4.1, circa Jul 2018)
# https://github.com/cheshirekow/cmake_format
# How wide to allow formatted cmake files