From dd9ec6c401f9b9666427b8d1eedb366b9891216e Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Wed, 17 Mar 2021 08:50:20 +1000 Subject: [PATCH] build: prefer REQUIRED in `find_program` --- CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1bfb333..0375632 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ ############################################################################### -cmake_minimum_required(VERSION 3.7.0) +cmake_minimum_required(VERSION 3.18.0) project(cruft-vulkan CXX) @@ -7,10 +7,7 @@ project(cruft-vulkan CXX) find_package (PythonInterp 3 REQUIRED) find_package (glfw3 REQUIRED) -find_program (GLSLANG glslangValidator) -if (NOT GLSLANG) - message (FATAL_ERROR "could not locate glslangValidator") -endif () +find_program (GLSLANG glslangValidator REQUIRED) ###############################################################################