|
36 | 36 | #
|
37 | 37 | #######################################################################
|
38 | 38 |
|
39 | | -set(ALLMOD la_xisnan.F90 la_constants.f90) |
| 39 | +set(CONSTMOD la_constants.f90) |
| 40 | + |
| 41 | +set(NANMOD la_xisnan.F90) |
40 | 42 |
|
41 | 43 | set(ALLAUX ilaenv.f ilaenv2stage.f ieeeck.f lsamen.f iparmq.f iparam2stage.F
|
42 | 44 | ilaprec.f ilatrans.f ilauplo.f iladiag.f chla_transtype.f
|
@@ -519,7 +521,14 @@ list(REMOVE_DUPLICATES SOURCES)
|
519 | 521 |
|
520 | 522 | # Use special target for MOD files to guarantee they are built before
|
521 | 523 | # any other files that depend on them
|
522 | | -add_library(mod_files OBJECT ${ALLMOD}) |
| 524 | +add_library(const_mod_file OBJECT ${CONSTMOD}) |
| 525 | +set_target_properties( |
| 526 | + const_mod_file PROPERTIES |
| 527 | + POSITION_INDEPENDENT_CODE ON |
| 528 | + Fortran_PREPROCESS ON |
| 529 | + ) |
| 530 | + |
| 531 | +add_library(mod_files OBJECT ${NANMOD} $<TARGET_OBJECTS:const_mod_file>) |
523 | 532 | set_target_properties(
|
524 | 533 | mod_files PROPERTIES
|
525 | 534 | POSITION_INDEPENDENT_CODE ON
|
|
0 commit comments