mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 05:50:32 +05:00
allow parallel build for netgen subproject
This commit is contained in:
parent
d557e59a69
commit
d6c6fbab98
@ -132,13 +132,19 @@ set_vars( NETGEN_CMAKE_ARGS
|
||||
INTEL_MIC
|
||||
)
|
||||
|
||||
if(${CMAKE_GENERATOR} STREQUAL "Unix Makefiles")
|
||||
set(NETGEN_BUILD_COMMAND $(MAKE) --silent )
|
||||
else()
|
||||
set(NETGEN_BUILD_COMMAND ${CMAKE_COMMAND} --build ${CMAKE_CURRENT_BINARY_DIR}/netgen --config ${CMAKE_BUILD_TYPE})
|
||||
endif()
|
||||
|
||||
ExternalProject_Add (netgen
|
||||
DEPENDS ${NETGEN_DEPENDENCIES}
|
||||
SOURCE_DIR ${PROJECT_SOURCE_DIR}
|
||||
CMAKE_ARGS -DUSE_SUPERBUILD=OFF ${NETGEN_CMAKE_ARGS} -DCMAKE_PREFIX_PATH=${INSTALL_DIR}
|
||||
INSTALL_COMMAND ""
|
||||
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/netgen
|
||||
BUILD_COMMAND ${CMAKE_COMMAND} --build ${CMAKE_CURRENT_BINARY_DIR}/netgen --config ${CMAKE_BUILD_TYPE}
|
||||
BUILD_COMMAND ${NETGEN_BUILD_COMMAND}
|
||||
STEP_TARGETS build
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user