Parcourir la source

Fix cmake for non-appveyor buildbot environments. (#1297)

Ehsan il y a 7 ans
Parent
commit
090d3680f9
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -85,7 +85,7 @@ option(HLSL_ENABLE_ANALYZE "Enables compiler analysis during compilation." OFF)
 option(HLSL_OPTIONAL_PROJS_IN_DEFAULT "Include optional projects in default build target." OFF) # HLSL Change
 
 # HLSL Change Starts - set flag for Appveyor CI
-if ( $ENV{CI} AND $ENV{APPVEYOR} )
+if ( "$ENV{CI}" AND "$ENV{APPVEYOR}" )
   add_definitions(-DDXC_ON_APPVEYOR_CI)
 endif()
 # HLSL Change ends