[Cmake-commits] [cmake-commits] hoffman committed CMakeLists.txt 1.22 1.23
cmake-commits at cmake.org
cmake-commits at cmake.org
Mon Nov 10 10:53:39 EST 2008
Update of /cvsroot/CMake/CMake/Tests/Fortran
In directory public:/mounts/ram/cvs-serv9498
Modified Files:
CMakeLists.txt
Log Message:
ENH: put a check in for the gnu sunpro case
Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Fortran/CMakeLists.txt,v
retrieving revision 1.22
retrieving revision 1.23
diff -C 2 -d -r1.22 -r1.23
*** CMakeLists.txt 6 Nov 2008 22:33:42 -0000 1.22
--- CMakeLists.txt 10 Nov 2008 15:53:36 -0000 1.23
***************
*** 97,100 ****
--- 97,105 ----
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()
endif()
More information about the Cmake-commits
mailing list