From 34433beabf70f6122b3abb3cce45c8cf9f28b6eb Mon Sep 17 00:00:00 2001 From: aliPMPAINT Date: Wed, 31 Mar 2021 11:28:59 +0430 Subject: [PATCH] Usinging the more compatible add_definitions(), as add_compile_definitions() is from 3.12 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b1fc5ab6..11200076b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,7 +90,7 @@ endif() # If glslang was cloned, then SPIRV/GlslangToSpv.h will be used instead of glslang/SPIRV/GlslangToSpv.h if(KOMPUTE_OPT_REPO_SUBMODULE_BUILD) - add_compile_definitions(USE_EXTERNAL_GLSLANG) + add_definitions(-DUSE_EXTERNAL_GLSLANG) endif() # Allow scripts to call main kompute Makefile