mirror of
https://github.com/visualboyadvance-m/visualboyadvance-m
synced 2025-10-05 23:52:49 +02:00
cmake: fix syntax error in Win32Deps.cmake
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: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
@@ -5,7 +5,7 @@ if(WIN32)
|
||||
endif()
|
||||
|
||||
set(WINARCH x86)
|
||||
if(CMAKE_C_COMPILER MATCHES x64 OR CMAKE_CXX_COMPILER MATCHES x64 OR $ENV{VSCMD_ARG_TGT_ARCH} MATCHES x64)
|
||||
if(CMAKE_C_COMPILER MATCHES x64 OR CMAKE_CXX_COMPILER MATCHES x64 OR "$ENV{VSCMD_ARG_TGT_ARCH}" MATCHES x64)
|
||||
set(WINARCH x64)
|
||||
endif()
|
||||
|
||||
|
2
vcpkg
2
vcpkg
Submodule vcpkg updated: b5ae25cf3d...c2ad1baafc
Reference in New Issue
Block a user