Browse Source

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

Ehsan 7 năm trước cách đây
mục cha
commit
090d3680f9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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