fix: should not use mlang in such a way in mingw
All checks were successful
Compilation test / build (push) Successful in 14m24s

This commit is contained in:
saturneric 2024-12-01 02:32:41 +01:00
parent 193a9ee85b
commit fd0b5f7a21

View File

@ -820,22 +820,22 @@ IF(WIN32)
ENDIF()
# MLang
CHECK_INCLUDE_FILES(Mlang.h VMIME_HAVE_MLANG_H)
CHECK_LIBRARY_EXISTS("mlang" ConvertINetString "${CMAKE_LIBRARY_PATH}" VMIME_HAVE_MLANG_LIB)
# CHECK_INCLUDE_FILES(Mlang.h VMIME_HAVE_MLANG_H)
# CHECK_LIBRARY_EXISTS("mlang" ConvertINetString "${CMAKE_LIBRARY_PATH}" VMIME_HAVE_MLANG_LIB)
IF(VMIME_HAVE_MLANG_H)
IF(VMIME_HAVE_MLANG_LIB)
SET(VMIME_HAVE_MLANG ON)
# IF(VMIME_HAVE_MLANG_H)
# IF(VMIME_HAVE_MLANG_LIB)
# SET(VMIME_HAVE_MLANG ON)
IF(VMIME_BUILD_SHARED_LIBRARY)
TARGET_LINK_LIBRARIES(
${VMIME_LIBRARY_NAME}
${TARGET_LINK_LIBRARIES}
"mlang"
)
ENDIF()
ENDIF()
ENDIF()
# IF(VMIME_BUILD_SHARED_LIBRARY)
# TARGET_LINK_LIBRARIES(
# ${VMIME_LIBRARY_NAME}
# ${TARGET_LINK_LIBRARIES}
# "mlang"
# )
# ENDIF()
# ENDIF()
# ENDIF()
ENDIF()