Skip to content

Commit 1bdf63e

Browse files
authored
CMake: Allow to override CDEFS
Useful cross compilation modes without an emulator that can run try/compile tests for example osx/arm64: conda-forge/scalapack-feedstock#31 cc @traversaro
1 parent d4d0066 commit 1bdf63e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ set(PKG_CONFIG_DIR ${libdir}/pkgconfig)
123123
include(FortranMangling)
124124
COMPILE(install_COMPILED)
125125

126-
FORTRAN_MANGLING(CDEFS)
126+
if (NOT DEFINED CDEFS)
127+
FORTRAN_MANGLING(CDEFS)
128+
endif ()
127129
#MESSAGE(STATUS "Setting CDEFS = ${CDEFS}")
128130
#set(CDEFS ${CDEFS} CACHE STRING "Fortran Mangling" FORCE)
129131
MESSAGE(STATUS "=========")

0 commit comments

Comments
 (0)