[Cmake-commits] [cmake-commits] hoffman committed CMakeLists.txt 1.23 1.24
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Nov 11 14:03:17 EST 2008
Update of /cvsroot/CMake/CMake/Tests/Fortran
In directory public:/mounts/ram/cvs-serv952
Modified Files:
CMakeLists.txt
Log Message:
ENH: fix gcc sun fortran mix
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Fortran/CMakeLists.txt,v
retrieving revision 1.23
retrieving revision 1.24
diff -C 2 -d -r1.23 -r1.24
*** CMakeLists.txt 10 Nov 2008 15:53:36 -0000 1.23
--- CMakeLists.txt 11 Nov 2008 19:03:14 -0000 1.24
***************
*** 97,104 ****
set(CMAKE_LINK_LIBRARY_SUFFIX )
endif()
! # gnu and sunpro do not use the same flag here...
if( ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU")
AND ("${CMAKE_Fortran_COMPILER_ID}" MATCHES "SunPro"))
! set(CMAKE_SHARED_LIBRARY_C_FLAGS "-KPIC" )
endif()
--- 97,107 ----
set(CMAKE_LINK_LIBRARY_SUFFIX )
endif()
! # gnu and sunpro do not use the same flags here...
! # however if LDFLAGS is used to set -m64 it causes odd stuf
! # with the fortran build
if( ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU")
AND ("${CMAKE_Fortran_COMPILER_ID}" MATCHES "SunPro"))
! set(CMAKE_EXE_LINKER_FLAGS "")
! set(CMAKE_Fortran_FLAGS "")
endif()
More information about the Cmake-commits
mailing list