Skip to content

Commit efd8594

Browse files
dyzhengdyzheng
andauthored
Fix: not build useless library without ENABLE_LCAO (#5412)
Co-authored-by: dyzheng <[email protected]>
1 parent edfa4c1 commit efd8594

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

source/module_hamilt_lcao/module_gint/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#add_subdirectory(kernels/cuda)
2+
if(ENABLE_LCAO)
23

34
list(APPEND objects
45
gint.cpp
@@ -69,4 +70,6 @@ IF (BUILD_TESTING)
6970
if(ENABLE_MPI)
7071
add_subdirectory(test)
7172
endif()
73+
endif()
74+
7275
endif()

source/module_hamilt_lcao/module_hcontainer/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
if(ENABLE_LCAO)
2+
13
list(APPEND objects
24
base_matrix.cpp
35
atom_pair.cpp
@@ -22,4 +24,6 @@ IF (BUILD_TESTING)
2224
if(ENABLE_MPI)
2325
add_subdirectory(test)
2426
endif()
27+
endif()
28+
2529
endif()

source/module_hamilt_pw/hamilt_pwdft/operator_pw/CMakeLists.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ list(APPEND operator_ks_pw_srcs
77
velocity_pw.cpp
88
)
99

10-
add_library(
11-
operator_ks_pw
12-
OBJECT
13-
${operator_ks_pw_srcs}
14-
)
10+
# this library is included in hamilt_pwdft now
11+
#add_library(
12+
# operator_ks_pw
13+
# OBJECT
14+
# ${operator_ks_pw_srcs}
15+
#)
1516

16-
if(ENABLE_COVERAGE)
17-
add_coverage(operator_ks_pw)
18-
endif()
17+
#if(ENABLE_COVERAGE)
18+
# add_coverage(operator_ks_pw)
19+
#endif()

0 commit comments

Comments
 (0)