Explorar el Código

Fix hctbuild -fv build break (#2662)

Helena Kotas hace 5 años
padre
commit
91e57feaf0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -87,7 +87,7 @@ option(HLSL_ENABLE_FIXED_VER "Reads version information from a file." OFF) # HLS
 
 if (HLSL_ENABLE_FIXED_VER)
   set(HLSL_EMBED_VERSION ON)
-  if (NOT DEFINED HLSL_FIXED_VERSION_LOCATION)
+  if (NOT DEFINED HLSL_FIXED_VERSION_LOCATION OR HLSL_FIXED_VERSION_LOCATION STREQUAL "")
     # HLSL Change - Directory with fixed version.inc file
     set(HLSL_FIXED_VERSION_LOCATION  ${CMAKE_CURRENT_SOURCE_DIR}\\utils\\version)
   endif()