Fix linking problem C and Fortran with Sun Compilers on Linux machine
authorjulie <julielangou@users.noreply.github.com>
Tue, 20 Dec 2011 04:45:12 +0000 (04:45 +0000)
committerjulie <julielangou@users.noreply.github.com>
Tue, 20 Dec 2011 04:45:12 +0000 (04:45 +0000)
CMakeLists.txt

index 3da538bf090b590ae64bf909d044db6307ae0523..355865aac988a204f557df80d06a920ae1dc21e5 100644 (file)
@@ -15,6 +15,9 @@ if (UNIX)
    if ( "${CMAKE_Fortran_COMPILER}" MATCHES "ifort" )
   set( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fltconsistency -fp_port" )
    endif ()
+# Delete libmtsk in linking sequence for Sun/Oracle Fortran Compiler.
+# This library is not present in the Sun package SolarisStudio13.3-linux-x86-bin
+  STRING(REPLACE \;mtsk\; \; CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES "${CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES}")
 endif ()