Skip to content
  • Rafael Kitover's avatar
    cmake: fix syntax error in Win32Deps.cmake · 23fe13d8
    Rafael Kitover authored
    
    
    In a construct such as:
    
    ```cmake
    if($ENV{FOO} MATCHES bar)
    ...
    endif()
    ```
    
    if the environment variable is not set, the if statement becomes a
    syntax error because there is nothing being compared.
    
    Fix this by quoting the environment variable like so:
    
    ```cmake
    if("$ENV{FOO}" MATCHES bar)
    ...
    endif()
    ```
    
    Signed-off-by: default avatarRafael Kitover <rkitover@gmail.com>
    23fe13d8