Regression in cmake-3.13.3 with missing source directory
Good morning
Scalapack [1] fails to build on FreeBSD [2] with cmake-3.13.3, and works all things being the same with 3.13.2.
I suspect the change [3] which made source/binary directories required. A possible fix for scalapack is in its CMAKE/FortranMangling.cmake
to append the value it passes as WORKING_DIRECTORY
as additional argument to the called cmake (line 21).
17 # Configure:
18 EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND}
19 "-DCMAKE_Fortran_COMPILER=${CMAKE_Fortran_COMPILER}"
20 "-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}"
21 "${PROJECT_SOURCE_DIR}/BLACS/INSTALL"
22 WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/BLACS/INSTALL/
23 RESULT_VARIABLE RESVAR OUTPUT_VARIABLE LOG1 ERROR_VARIABLE LOG1
24 )
mfg Tobias
[1] http://www.netlib.org/scalapack/ [v2.0.2]
[3] 27eb7c5b