Commit dc788387 authored by Brad King's avatar Brad King
Browse files

Fix FortranCInterface_VERIFY for non-C++ case

The verification program entry point (main) is defined in a C source
file, so the C compiler should be used to link when only Fortran and C
are involved.  The C++ compiler should still be used when the CXX option
is enabled.
parent 90cc5c5e
......@@ -14,3 +14,8 @@ FortranCInterface_HEADER(VerifyFortran.h SYMBOLS VerifyFortran)
include_directories(${VerifyFortranC_BINARY_DIR})
add_executable(VerifyFortranC main.c VerifyC.c VerifyFortran.f ${VerifyCXX})
if(NOT VERIFY_CXX)
# The entry point (main) is defined in C; link with the C compiler.
set_property(TARGET VerifyFortranC PROPERTY LINKER_LANGUAGE C)
endif()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment