diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-11-06 14:41:08 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-11-06 14:41:08 (GMT) |
commit | 86b123ba27006824de89fa55f1df1e364c2d2a00 (patch) | |
tree | b95348ba382c01f9dbdff17b027001e66faa30ce /Tests/Fortran | |
parent | d3e63ea4f7c9cba6f888719256708b9cf4a60a9c (diff) | |
download | CMake-86b123ba27006824de89fa55f1df1e364c2d2a00.zip CMake-86b123ba27006824de89fa55f1df1e364c2d2a00.tar.gz CMake-86b123ba27006824de89fa55f1df1e364c2d2a00.tar.bz2 |
ENH: add a way to fix bullseye link with fortran
Diffstat (limited to 'Tests/Fortran')
-rw-r--r-- | Tests/Fortran/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/Fortran/CMakeLists.txt b/Tests/Fortran/CMakeLists.txt index 91bd339..e8f5227 100644 --- a/Tests/Fortran/CMakeLists.txt +++ b/Tests/Fortran/CMakeLists.txt @@ -62,6 +62,11 @@ function(test_fortran_c_interface_module) message("Fortran = ${CMAKE_Fortran_COMPILER_ID}") message("C = ${CMAKE_C_COMPILER_ID}") add_executable(foo ${srcs}) + if(NOT ("$ENV{EXTRA_FORTRAN_C_LIBS}" STREQUAL "")) + message(STATUS + "linking in extra C to Fortran libs $ENV{EXTRA_FORTRAN_C_LIBS}") + target_link_libraries(foo $ENV{EXTRA_FORTRAN_C_LIBS}) + endif() # print out some stuff to help debug on machines via cdash file(READ "${testf_BINARY_DIR}/foo.h" fooh) message("foo.h contents:\n${fooh}") |