[Cmake-commits] [cmake-commits] hoffman committed CMakeLists.txt 1.18 1.19
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Nov 3 12:16:01 EST 2008
Update of /cvsroot/CMake/CMake/Tests/Fortran
In directory public:/mounts/ram/cvs-serv3392
Modified Files:
CMakeLists.txt
Log Message:
ENH: only allow matching fortran a c compilers to be used
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Fortran/CMakeLists.txt,v
retrieving revision 1.18
retrieving revision 1.19
diff -C 2 -d -r1.18 -r1.19
*** CMakeLists.txt 31 Oct 2008 20:10:34 -0000 1.18
--- CMakeLists.txt 3 Nov 2008 17:15:59 -0000 1.19
***************
*** 1,4 ****
--- 1,5 ----
cmake_minimum_required (VERSION 2.6)
PROJECT(testf C Fortran)
+ message("CTEST_FULL_OUTPUT ")
SET(CMAKE_VERBOSE_MAKEFILE 1)
MESSAGE("ENV_FLAGS = $ENV{FFLAGS}")
***************
*** 30,36 ****
create_fortran_c_interface("F_" FORTRAN_FUNCTIONS "${testf_BINARY_DIR}/foo.h")
include_directories("${testf_BINARY_DIR}")
! add_executable(foo ${srcs})
# print out some stuff to help debug on machines via cdash
- message("CTEST_FULL_OUTPUT ")
file(READ "${testf_BINARY_DIR}/foo.h" fooh)
message("foo.h contents:\n${fooh}")
--- 31,45 ----
create_fortran_c_interface("F_" FORTRAN_FUNCTIONS "${testf_BINARY_DIR}/foo.h")
include_directories("${testf_BINARY_DIR}")
!
! if("${CMAKE_Fortran_COMPILER_ID}" MATCHES "${CMAKE_C_COMPILER_ID}" )
! message("Fortran = ${CMAKE_Fortran_COMPILER_ID}")
! message("C = ${CMAKE_C_COMPILER_ID}")
! add_executable(foo ${srcs})
! else()
! message("Fortran does not match c compiler")
! message("Fortran = ${CMAKE_Fortran_COMPILER_ID}")
! message("C = ${CMAKE_C_COMPILER_ID}")
! 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}")
More information about the Cmake-commits
mailing list