[Cmake-commits] [cmake-commits] hoffman committed CMakeLists.txt 1.20 1.21
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Nov 6 09:41:10 EST 2008
Update of /cvsroot/CMake/CMake/Tests/Fortran
In directory public:/mounts/ram/cvs-serv25891
Modified Files:
CMakeLists.txt
Log Message:
ENH: add a way to fix bullseye link with fortran
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Fortran/CMakeLists.txt,v
retrieving revision 1.20
retrieving revision 1.21
diff -C 2 -d -r1.20 -r1.21
*** CMakeLists.txt 5 Nov 2008 15:20:50 -0000 1.20
--- CMakeLists.txt 6 Nov 2008 14:41:08 -0000 1.21
***************
*** 63,66 ****
--- 63,71 ----
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)
More information about the Cmake-commits
mailing list