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:
parent
d9432ebb14
commit
0556192238
|
@ -93,7 +93,8 @@ if(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
|
||||||
set(CMAKE_MAP_IMPORTED_CONFIG_RELWITHDEBINFO "Debug")
|
set(CMAKE_MAP_IMPORTED_CONFIG_RELWITHDEBINFO "Debug")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT ENV{MSYSTEM_PREFIX} STREQUAL "")
|
set(MSYS OFF)
|
||||||
|
if(NOT "$ENV{MSYSTEM_PREFIX}" STREQUAL "")
|
||||||
set(MSYS ON)
|
set(MSYS ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue