Skip to content

Commit cd10f40

Browse files
committed
- do not include main.c by default
use `F2C_INCLUDE_MAIN=ON` to change
1 parent c2f1d7d commit cd10f40

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/clapack/F2CLIBS/libf2c/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
2+
option(F2C_INCLUDE_MAIN "Include main.c in the f2c library" OFF)
13
set(MISC
2-
f77vers.c i77vers.c main.c s_rnge.c abort_.c exit_.c getarg_.c iargc_.c
4+
f77vers.c i77vers.c s_rnge.c abort_.c exit_.c getarg_.c iargc_.c
35
getenv_.c signal_.c s_stop.c s_paus.c system_.c cabs.c ctype.c
46
derf_.c derfc_.c erf_.c erfc_.c sig_die.c uninit.c)
7+
if (F2C_INCLUDE_MAIN)
8+
set(MISC ${MISC} main.c)
9+
endif()
510
set(POW pow_ci.c pow_dd.c pow_di.c pow_hh.c pow_ii.c pow_ri.c pow_zi.c pow_zz.c)
611
set(CX c_abs.c c_cos.c c_div.c c_exp.c c_log.c c_sin.c c_sqrt.c)
712
set(DCX z_abs.c z_cos.c z_div.c z_exp.c z_log.c z_sin.c z_sqrt.c)

0 commit comments

Comments
 (0)