Usinging the more compatible add_definitions(), as add_compile_definitions() is from 3.12

This commit is contained in:
aliPMPAINT 2021-03-31 11:28:59 +04:30
parent 61053d633d
commit 34433beabf

View file

@ -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