https://github.com/Kitware/CMake
Revision 47abe5f2251f5e31c2da428cd8d92ba56844856c authored by Axel Huebl on 20 August 2020, 00:12:23 UTC, committed by Brad King on 20 August 2020, 10:52:45 UTC
Fix a regression with MPI and CUDA<10.2 that did let `-pthread` flags slip to nvcc again. In commit b725a19072 (FindMPI: Deny -fexceptions from NVCC, 2020-07-02, v3.18.0-rc4~12^2) we accidentally forgot to use the variable containing the replacement result. Fixes: #21108
1 parent 09e8de7
Tip revision: 47abe5f2251f5e31c2da428cd8d92ba56844856c authored by Axel Huebl on 20 August 2020, 00:12:23 UTC
FindMPI: Fix regression in pthread guard
FindMPI: Fix regression in pthread guard
Tip revision: 47abe5f
CMakeLists.txt
cmake_minimum_required(VERSION 3.6)
project(ExternalProjectSourceSubdirNotCMake NONE)
include(ExternalProject)
find_program(MAKE_EXECUTABLE
NAMES gmake make)
if (NOT MAKE_EXECUTABLE)
message("No `make` executable found; skipping")
return ()
endif ()
ExternalProject_Add(Example
SOURCE_SUBDIR subdir
BUILD_IN_SOURCE 1
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Example
CONFIGURE_COMMAND ""
BUILD_COMMAND "${MAKE_EXECUTABLE}"
INSTALL_COMMAND ""
)
Computing file changes ...