aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Szakmeister <jszakmeister@users.noreply.github.com>2018-04-12 06:51:38 -0400
committerJustin M. Keyes <justinkz@gmail.com>2018-04-12 12:51:38 +0200
commitf44fb5b1a58090d76164a370159790c48e2e999f (patch)
tree18d2769f5c84d8ede60d505ec82c69359cfc8683
parentd48df146d1644028128046946b76f92eef23dc50 (diff)
downloadrneovim-f44fb5b1a58090d76164a370159790c48e2e999f.tar.gz
rneovim-f44fb5b1a58090d76164a370159790c48e2e999f.tar.bz2
rneovim-f44fb5b1a58090d76164a370159790c48e2e999f.zip
build/freebsd: set CMAKE_MAKE_PROGRAM iff "Unix Makefiles" (#8260)
It's only appropriate to set CMAKE_MAKE_PROGRAM to gmake when we're using the "Unix Makefiles" generator. On QB, the nodes have Ninja available and will use it, which means CMAKE_GENERATOR is set to "Ninja". Setting CMAKE_MAKE_PROGRAM was forcing the build to use gmake instead of ninja, which was causing the build failure.
-rw-r--r--third-party/cmake/BuildLuv.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/third-party/cmake/BuildLuv.cmake b/third-party/cmake/BuildLuv.cmake
index 7b8ae09ec4..339264746c 100644
--- a/third-party/cmake/BuildLuv.cmake
+++ b/third-party/cmake/BuildLuv.cmake
@@ -86,7 +86,8 @@ else()
"-DCMAKE_C_FLAGS:STRING=${CMAKE_C_COMPILER_ARG1} ${LUV_INCLUDE_FLAGS} -fPIC")
endif()
-if(CMAKE_SYSTEM_NAME MATCHES ".*BSD" OR CMAKE_SYSTEM_NAME MATCHES "DragonFly")
+if(CMAKE_GENERATOR MATCHES "Unix Makefiles" AND
+ (CMAKE_SYSTEM_NAME MATCHES ".*BSD" OR CMAKE_SYSTEM_NAME MATCHES "DragonFly"))
set(LUV_BUILD_COMMAND ${CMAKE_COMMAND} "-DCMAKE_MAKE_PROGRAM=gmake" --build .)
else()
set(LUV_BUILD_COMMAND ${CMAKE_COMMAND} --build .)