[Cmake-commits] [cmake-commits] king committed CMakeLists.txt 1.24 1.25 test_preprocess.F90 1.1 1.2

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Feb 24 14:32:33 EST 2009


Update of /cvsroot/CMake/CMake/Tests/Fortran
In directory public:/mounts/ram/cvs-serv1724/Tests/Fortran

Modified Files:
	CMakeLists.txt test_preprocess.F90 
Log Message:
ENH: Test included header in Fortran preprocessing

This extends the Fortran preprocessing test to include a header file
through a preprocessor directive.


Index: test_preprocess.F90
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Fortran/test_preprocess.F90,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** test_preprocess.F90	9 Jan 2008 15:30:11 -0000	1.1
--- test_preprocess.F90	24 Feb 2009 19:32:31 -0000	1.2
***************
*** 47,55 ****
  ! 0 ; <empty>
  
! #ifdef BAR
!   PRINT * , 'BAR was defined via ADD_DEFINITIONS'
! #else
!   PRINT *, 'If you can read this something went wrong'
! #endif
  
  END PROGRAM
--- 47,51 ----
  ! 0 ; <empty>
  
! #include "test_preprocess.h"
  
  END PROGRAM

Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Fortran/CMakeLists.txt,v
retrieving revision 1.24
retrieving revision 1.25
diff -C 2 -d -r1.24 -r1.25
*** CMakeLists.txt	11 Nov 2008 19:03:14 -0000	1.24
--- CMakeLists.txt	24 Feb 2009 19:32:31 -0000	1.25
***************
*** 128,131 ****
--- 128,132 ----
  
    add_definitions(-DFOO -DBAR=1)
+   include_directories(${testf_SOURCE_DIR}/include)
    add_executable(test_preprocess test_preprocess.F90)
  



More information about the Cmake-commits mailing list