File tree 1 file changed +6
-9
lines changed
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.9)
1
+ cmake_minimum_required (VERSION 3.9...3.25 )
2
2
3
3
project (SCALAPACK VERSION 2.2.1 LANGUAGES C Fortran)
4
4
@@ -179,6 +179,9 @@ else(LAPACK_FOUND)
179
179
ENDIF (USE_OPTIMIZED_LAPACK_BLAS)
180
180
if (NOT LAPACK_FOUND)
181
181
message (STATUS "--> LAPACK and BLAS were not found. Reference LAPACK and BLAS will be downloaded and installed" )
182
+ SET (LAPACK_LIBRARIES ${SCALAPACK_BINARY_DIR} /lib/liblapack${CMAKE_STATIC_LIBRARY_SUFFIX} CACHE STRING "LAPACK library" FORCE)
183
+ SET (BLAS_LIBRARIES ${SCALAPACK_BINARY_DIR} /lib/libblas${CMAKE_STATIC_LIBRARY_SUFFIX} CACHE STRING "BLAS library" FORCE)
184
+
182
185
include (ExternalProject)
183
186
ExternalProject_Add(
184
187
lapack
@@ -191,15 +194,9 @@ else(LAPACK_FOUND)
191
194
-DBUILD_COMPLEX16:BOOL =${BUILD_COMPLEX16}
192
195
PREFIX ${SCALAPACK_BINARY_DIR} /dependencies
193
196
TLS_VERIFY true
197
+ BUILD_BYPRODUCTS ${BLAS_LIBRARIES} ${LAPACK_LIBRARIES}
194
198
)
195
- if (NOT MSVC )
196
- SET (LAPACK_LIBRARIES ${SCALAPACK_BINARY_DIR} /lib/liblapack.a CACHE STRING "LAPACK library" FORCE)
197
- SET (BLAS_LIBRARIES ${SCALAPACK_BINARY_DIR} /lib/libblas.a CACHE STRING "BLAS library" FORCE)
198
- else () # MSVC
199
- SET (LAPACK_LIBRARIES ${SCALAPACK_BINARY_DIR} /lib/liblapack.lib CACHE STRING "LAPACK library" FORCE)
200
- SET (BLAS_LIBRARIES ${SCALAPACK_BINARY_DIR} /lib/libblas.lib CACHE STRING "BLAS library" FORCE)
201
- endif ()
202
- ENDIF ()
199
+ ENDIF ()
203
200
ENDIF ()
204
201
205
202
message (STATUS "BLAS library: ${BLAS_LIBRARIES} " )
You can’t perform that action at this time.
0 commit comments