build: prefer REQUIRED in find_program
This commit is contained in:
parent
142b7c3003
commit
dd9ec6c401
@ -1,5 +1,5 @@
|
|||||||
###############################################################################
|
###############################################################################
|
||||||
cmake_minimum_required(VERSION 3.7.0)
|
cmake_minimum_required(VERSION 3.18.0)
|
||||||
project(cruft-vulkan CXX)
|
project(cruft-vulkan CXX)
|
||||||
|
|
||||||
|
|
||||||
@ -7,10 +7,7 @@ project(cruft-vulkan CXX)
|
|||||||
find_package (PythonInterp 3 REQUIRED)
|
find_package (PythonInterp 3 REQUIRED)
|
||||||
find_package (glfw3 REQUIRED)
|
find_package (glfw3 REQUIRED)
|
||||||
|
|
||||||
find_program (GLSLANG glslangValidator)
|
find_program (GLSLANG glslangValidator REQUIRED)
|
||||||
if (NOT GLSLANG)
|
|
||||||
message (FATAL_ERROR "could not locate glslangValidator")
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user