浏览代码

Merge topic 'external-project-extra-gen'

beeca11 Fixed parallel build for generators with EXTRA.
David Cole 15 年之前
父节点
当前提交
5b43d8f8b1
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Modules/ExternalProject.cmake

+ 1 - 2
Modules/ExternalProject.cmake

@@ -597,8 +597,7 @@ function(_ep_get_build_command name step cmd_var)
       # CMake project.  Select build command based on generator.
       get_target_property(cmake_generator ${name} _EP_CMAKE_GENERATOR)
       if("${CMAKE_GENERATOR}" MATCHES "Make" AND
-          ("${cmake_generator}" STREQUAL "${CMAKE_GENERATOR}" OR
-          NOT cmake_generator))
+         ("${cmake_generator}" MATCHES "Make" OR NOT cmake_generator))
         # The project uses the same Makefile generator.  Use recursive make.
         set(cmd "$(MAKE)")
         if(step STREQUAL "INSTALL")