summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-11-25 13:38:07 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-11-25 13:38:07 (GMT)
commitd6516dc69307d36b789b00c3d6dda95825f1a838 (patch)
tree0ec93602a173152a48310fd610ac69b5e18088e2 /Modules
parent788910941f4484bbe1e7fd4c3028e05e63d04c32 (diff)
parent83751af2198a4eb298bdc814c56d0a4a4698e1df (diff)
downloadCMake-d6516dc69307d36b789b00c3d6dda95825f1a838.zip
CMake-d6516dc69307d36b789b00c3d6dda95825f1a838.tar.gz
CMake-d6516dc69307d36b789b00c3d6dda95825f1a838.tar.bz2
Merge topic 'EclipseParallelMakeOnlyOnUnixHosts'
83751af Eclipse: add -j only on UNIX hosts
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeFindEclipseCDT4.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeFindEclipseCDT4.cmake b/Modules/CMakeFindEclipseCDT4.cmake
index b67e0f0..85c1fdf 100644
--- a/Modules/CMakeFindEclipseCDT4.cmake
+++ b/Modules/CMakeFindEclipseCDT4.cmake
@@ -78,7 +78,7 @@ processorcount(_CMAKE_ECLIPSE_PROCESSOR_COUNT)
# Only set -j if we are under UNIX and if the make-tool used actually has "make" in the name
# (we may also get here in the future e.g. for ninja)
-if("${_CMAKE_ECLIPSE_PROCESSOR_COUNT}" GREATER 1 AND UNIX AND "${CMAKE_MAKE_PROGRAM}" MATCHES make)
+if("${_CMAKE_ECLIPSE_PROCESSOR_COUNT}" GREATER 1 AND CMAKE_HOST_UNIX AND "${CMAKE_MAKE_PROGRAM}" MATCHES make)
set(_CMAKE_ECLIPSE_INITIAL_MAKE_ARGS "-j${_CMAKE_ECLIPSE_PROCESSOR_COUNT}")
endif()