mirror of
https://github.com/neovim/neovim.git
synced 2026-04-21 23:05:41 +00:00
CMake: Dont search for Make in Windows
This commit is contained in:
committed by
Florian Walch
parent
8814e275cf
commit
73dbd14283
28
third-party/CMakeLists.txt
vendored
28
third-party/CMakeLists.txt
vendored
@@ -22,21 +22,21 @@ option(USE_BUNDLED_MSGPACK "Use the bundled msgpack." ${USE_BUNDLED})
|
||||
option(USE_BUNDLED_LUAJIT "Use the bundled version of luajit." ${USE_BUNDLED})
|
||||
option(USE_BUNDLED_LUAROCKS "Use the bundled version of luarocks." ${USE_BUNDLED})
|
||||
|
||||
# TODO: add windows support
|
||||
|
||||
find_program(MAKE_PRG NAMES gmake make)
|
||||
if(MAKE_PRG)
|
||||
execute_process(
|
||||
COMMAND "${MAKE_PRG}" --version
|
||||
OUTPUT_VARIABLE MAKE_VERSION_INFO)
|
||||
if(NOT "${OUTPUT_VARIABLE}" MATCHES ".*GNU.*")
|
||||
unset(MAKE_PRG)
|
||||
if(UNIX)
|
||||
find_program(MAKE_PRG NAMES gmake make)
|
||||
if(MAKE_PRG)
|
||||
execute_process(
|
||||
COMMAND "${MAKE_PRG}" --version
|
||||
OUTPUT_VARIABLE MAKE_VERSION_INFO)
|
||||
if(NOT "${OUTPUT_VARIABLE}" MATCHES ".*GNU.*")
|
||||
unset(MAKE_PRG)
|
||||
endif()
|
||||
endif()
|
||||
if(NOT MAKE_PRG)
|
||||
message(FATAL_ERROR "GNU Make is required to build the dependencies.")
|
||||
else()
|
||||
message(STATUS "Found GNU Make at ${MAKE_PRG}")
|
||||
endif()
|
||||
endif()
|
||||
if(NOT MAKE_PRG)
|
||||
message(FATAL_ERROR "GNU Make is required to build the dependencies.")
|
||||
else()
|
||||
message(STATUS "Found GNU Make at ${MAKE_PRG}")
|
||||
endif()
|
||||
|
||||
# When using make, use the $(MAKE) variable to avoid warning about the job
|
||||
|
||||
Reference in New Issue
Block a user