From d14b0d53196ec6d7fdce92d3d3f3734cc5884176 Mon Sep 17 00:00:00 2001 From: halx99 Date: Sun, 16 Jul 2023 14:49:32 +0800 Subject: [PATCH] Cache GLSLCC_OUT_DIR for symlink works --- cmake/Modules/AXGLSLCC.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/Modules/AXGLSLCC.cmake b/cmake/Modules/AXGLSLCC.cmake index 48cd4e983d..3907041546 100644 --- a/cmake/Modules/AXGLSLCC.cmake +++ b/cmake/Modules/AXGLSLCC.cmake @@ -5,7 +5,7 @@ cmake_policy(SET CMP0057 NEW) ## enable shader lang by shader compiler: glslcc macro(glslcc_option variable value) if(NOT DEFINED ${variable}) - set(${variable} ${value}) + set(${variable} ${value} CACHE STRING "" FORCE) endif() endmacro() @@ -23,6 +23,8 @@ if (NOT GLSLCC_EXE) message(FATAL_ERROR "Please run setup.ps1 again to download glslcc, and run CMake again.") endif() +message(STATUS "GLSLCC_OUT_DIR=${GLSLCC_OUT_DIR}") +message(STATUS "GLSLCC_FIND_PROG_ROOT=${GLSLCC_FIND_PROG_ROOT}") message(STATUS "GLSLCC_FRAG_SOURCE_FILE_EXTENSIONS=${GLSLCC_FRAG_SOURCE_FILE_EXTENSIONS}") message(STATUS "GLSLCC_VERT_SOURCE_FILE_EXTENSIONS=${GLSLCC_VERT_SOURCE_FILE_EXTENSIONS}")