Cache GLSLCC_OUT_DIR for symlink works

This commit is contained in:
halx99 2023-07-16 14:49:32 +08:00
parent 15a8db3ac4
commit d14b0d5319
1 changed files with 3 additions and 1 deletions

View File

@ -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}")