1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00

Compare commits

..

No commits in common. "9f808376b9a9215b0ae8359f5164f384bd192a03" and "d879999aeb6906daa87125ed975344bfadd6a120" have entirely different histories.

View File

@ -39,21 +39,14 @@ if(WIN32)
endif() endif()
endforeach() endforeach()
endif(X64) endif(X64)
find_program(CMAKE_MC_COMPILER mc.exe HINTS "${sdk_bindir}" "${kit_bindir}" "${kit81_bindir}" ${kit10_bindir} endif()
DOC "path to message compiler") find_program(CMAKE_MC_COMPILER mc.exe HINTS "${sdk_bindir}" "${kit_bindir}" "${kit81_bindir}" ${kit10_bindir}
elseif ("${CMAKE_GENERATOR}" MATCHES "MSYS" OR "${CMAKE_GENERATOR}" MATCHES "^(CodeBlocks)?.*(MinGW)?.*") DOC "path to message compiler")
get_filename_component(MINGW_BIN_PATH ${CMAKE_C_COMPILER} DIRECTORY REALPATH) if(NOT CMAKE_MC_COMPILER)
if(NOT IS_DIRECTORY ${MINGW_BIN_PATH}) message(FATAL_ERROR "message compiler not found: required to build")
get_filename_component(MINGW_BIN_PATH ${CMAKE_CXX_COMPILER} DIRECTORY REALPATH) endif(NOT CMAKE_MC_COMPILER)
endif() message(STATUS "Found message compiler: ${CMAKE_MC_COMPILER}")
find_program(CMAKE_MC_COMPILER windmc.exe HINTS "${MINGW_BIN_PATH}" mark_as_advanced(CMAKE_MC_COMPILER)
DOC "path to message compiler")
endif()
if(NOT CMAKE_MC_COMPILER)
message(FATAL_ERROR "message compiler not found: required to build")
endif(NOT CMAKE_MC_COMPILER)
message(STATUS "Found message compiler: ${CMAKE_MC_COMPILER}")
mark_as_advanced(CMAKE_MC_COMPILER)
endif(WIN32) endif(WIN32)
#=============================================================================== #===============================================================================