Skip to content

Commit 641767f

Browse files
authored
Merge pull request #2001 from martin-frbg/cmake-dynlist
Support DYNAMIC_LIST option in cmake
2 parents af6e225 + 5952e58 commit 641767f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

cmake/arch.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ if (DYNAMIC_ARCH)
7474
if (NOT NO_AVX512)
7575
set(DYNAMIC_CORE ${DYNAMIC_CORE} SKYLAKEX)
7676
endif ()
77+
if (DYNAMIC_LIST)
78+
set(DYNAMIC_CORE PRESCOTT ${DYNAMIC_LIST})
79+
endif ()
7780
endif ()
7881

7982
if (NOT DYNAMIC_CORE)

cmake/system.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,13 @@ if (DYNAMIC_ARCH)
187187
endif ()
188188
endif ()
189189

190+
if (DYNAMIC_LIST)
191+
set(CCOMMON_OPT "${CCOMMON_OPT} -DDYNAMIC_LIST")
192+
foreach(DCORE ${DYNAMIC_LIST})
193+
set(CCOMMON_OPT "${CCOMMON_OPT} -DDYN_${DCORE}")
194+
endforeach ()
195+
endif ()
196+
190197
if (NO_LAPACK)
191198
set(CCOMMON_OPT "${CCOMMON_OPT} -DNO_LAPACK")
192199
#Disable LAPACK C interface

0 commit comments

Comments
 (0)