aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2014-11-06 00:41:14 +0000
committerFlorian Walch <florian@fwalch.com>2015-05-15 17:55:01 +0300
commit73dbd1428374148676f208fea5092f0ccdd92089 (patch)
tree017780b93f5449f42701ee54eb2803c476481969
parent8814e275cfa81a8fb252915d9bf83c3793c4c6ad (diff)
downloadrneovim-73dbd1428374148676f208fea5092f0ccdd92089.tar.gz
rneovim-73dbd1428374148676f208fea5092f0ccdd92089.tar.bz2
rneovim-73dbd1428374148676f208fea5092f0ccdd92089.zip
CMake: Dont search for Make in Windows
-rw-r--r--third-party/CMakeLists.txt28
1 files changed, 14 insertions, 14 deletions
diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt
index 3db6bb399f..15a9a52efe 100644
--- a/third-party/CMakeLists.txt
+++ b/third-party/CMakeLists.txt
@@ -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