build: fix MSYS2 check

Fix cmake logic for detecting MSYS2 "$ENV{MSYSTEM_PREFIX}".

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2024-03-31 01:16:36 +00:00
parent d9432ebb14
commit 0556192238
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 2 additions and 1 deletions

View File

@ -93,7 +93,8 @@ if(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
set(CMAKE_MAP_IMPORTED_CONFIG_RELWITHDEBINFO "Debug")
endif()
if(NOT ENV{MSYSTEM_PREFIX} STREQUAL "")
set(MSYS OFF)
if(NOT "$ENV{MSYSTEM_PREFIX}" STREQUAL "")
set(MSYS ON)
endif()