Skip to content

Commit 40ca7a2

Browse files
committed
Include lapack_64.h only during the build
1 parent ee213a3 commit 40ca7a2

File tree

2,055 files changed

+12
-2056
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,055 files changed

+12
-2056
lines changed

INSTALL/dlamch.f

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include "../SRC/lapack_64.h"
21
*> \brief \b DLAMCH
32
*
43
* =========== DOCUMENTATION ===========

INSTALL/droundup_lwork.f

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include "../SRC/lapack_64.h"
21
*> \brief \b DROUNDUP_LWORK
32
*
43
* =========== DOCUMENTATION ===========

INSTALL/ilaver.f

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include "../SRC/lapack_64.h"
21
*> \brief \b ILAVER returns the LAPACK version.
32
**
43
* =========== DOCUMENTATION ===========

INSTALL/lsame.f

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include "../SRC/lapack_64.h"
21
*> \brief \b LSAME
32
*
43
* =========== DOCUMENTATION ===========

INSTALL/slamch.f

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include "../SRC/lapack_64.h"
21
*> \brief \b SLAMCH
32
*
43
* =========== DOCUMENTATION ===========

INSTALL/sroundup_lwork.f

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include "../SRC/lapack_64.h"
21
*> \brief \b SROUNDUP_LWORK
32
*
43
* =========== DOCUMENTATION ===========

SRC/CMakeLists.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -536,10 +536,17 @@ set_target_properties(
536536

537537
if(BUILD_INDEX64_EXT_API)
538538
set(SOURCES_64)
539-
list(APPEND SOURCES_64 ${SOURCES})
539+
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${LAPACKLIB}_64_obj)
540+
file(COPY ${SOURCES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/${LAPACKLIB}_64_obj)
541+
file(GLOB SOURCES_64 ${CMAKE_CURRENT_BINARY_DIR}/${LAPACKLIB}_64_obj/*.*)
540542
list(REMOVE_ITEM SOURCES_64 la_xisnan.F90)
541-
list(REMOVE_ITEM SOURCES_64 ${SECOND_SRC})
542-
list(REMOVE_ITEM SOURCES_64 ${DSECOND_SRC})
543+
foreach(F IN LISTS SOURCES_64)
544+
set(FFILE "")
545+
file(READ ${F} FFILE)
546+
file(WRITE ${F} "#include \"lapack_64.h\"\n")
547+
file(APPEND ${F} "${FFILE}")
548+
endforeach()
549+
file(COPY lapack_64.h DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/${LAPACKLIB}_64_obj)
543550
add_library(${LAPACKLIB}_64_obj OBJECT ${SOURCES_64})
544551
target_link_libraries(${LAPACKLIB}_64_obj mod_files)
545552
target_compile_options(${LAPACKLIB}_64_obj PRIVATE ${FOPT_ILP64} -DLAPACK_64)

SRC/cbbcsd.f

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include "lapack_64.h"
21
*> \brief \b CBBCSD
32
*
43
* =========== DOCUMENTATION ===========

SRC/cbdsqr.f

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include "lapack_64.h"
21
*> \brief \b CBDSQR
32
*
43
* =========== DOCUMENTATION ===========

SRC/cgbbrd.f

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include "lapack_64.h"
21
*> \brief \b CGBBRD
32
*
43
* =========== DOCUMENTATION ===========

0 commit comments

Comments
 (0)