Fix condition

This commit is contained in:
Romain Thomas 2021-01-05 13:35:12 +01:00
parent bbe04d0e28
commit 90a781baac

View File

@ -14,7 +14,7 @@ endif()
if (cxx_std_14 IN_LIST CMAKE_CXX_COMPILE_FEATURES)
if (${MSVC} AND ${MSVC_TOOLSET_VERSION} GREATER_EQUAL 141)
set(LIEF_SUPPORT_CXX14 1)
elseif(NOT ${MSVC})
elseif((NOT DEFINED MSVC) OR (NOT ${MSVC}))
set(LIEF_SUPPORT_CXX14 1)
endif()
endif()
@ -22,7 +22,7 @@ endif()
if (cxx_std_17 IN_LIST CMAKE_CXX_COMPILE_FEATURES)
if (${MSVC} AND ${MSVC_TOOLSET_VERSION} GREATER_EQUAL 142)
set(LIEF_SUPPORT_CXX17 1)
elseif(NOT ${MSVC})
elseif((NOT DEFINED MSVC) OR (NOT ${MSVC}))
set(LIEF_SUPPORT_CXX17 1)
endif()
endif()