[Cmake-commits] CMake branch, next, updated. v2.8.7-1953-g3684984

Bill Hoffman bill.hoffman at kitware.com
Tue Jan 3 22:20:18 EST 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  3684984750196c30e631dfd82e056c8f49af4237 (commit)
       via  eb0fdcb314831de6c4de855521b100144c10a9e6 (commit)
      from  135932415b3de7975a6fc90606b04b9e0471523d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3684984750196c30e631dfd82e056c8f49af4237
commit 3684984750196c30e631dfd82e056c8f49af4237
Merge: 1359324 eb0fdcb
Author:     Bill Hoffman <bill.hoffman at kitware.com>
AuthorDate: Tue Jan 3 22:20:09 2012 -0500
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Tue Jan 3 22:20:09 2012 -0500

    Merge topic 'cmake_add_fortran_subdirectory' into next
    
    eb0fdcb Put a try-compile in to test for sunquad library.


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=eb0fdcb314831de6c4de855521b100144c10a9e6
commit eb0fdcb314831de6c4de855521b100144c10a9e6
Author:     Bill Hoffman <bill.hoffman at kitware.com>
AuthorDate: Tue Jan 3 22:17:40 2012 -0500
Commit:     Bill Hoffman <bill.hoffman at kitware.com>
CommitDate: Tue Jan 3 22:17:40 2012 -0500

    Put a try-compile in to test for sunquad library.

diff --git a/Tests/VSGNUFortran/fortran/CMakeLists.txt b/Tests/VSGNUFortran/fortran/CMakeLists.txt
index 2141d1a..46b2b38 100644
--- a/Tests/VSGNUFortran/fortran/CMakeLists.txt
+++ b/Tests/VSGNUFortran/fortran/CMakeLists.txt
@@ -13,6 +13,11 @@ target_link_libraries(hello world)
 if(CMAKE_Fortran_COMPILER_ID MATCHES SunPro)
   target_link_libraries(hello fsu)
   if(CMAKE_Fortran_PLATFORM_ID MATCHES SunOS)
-    target_link_libraries(hello sunmath sunquad m)
+    target_link_libraries(hello sunmath m)
+    include(CheckLibraryExists)
+    check_library_exists(sunquad Qge "" CMAKE_HAS_SUNQUAD)
+    if(CMAKE_HAS_SUNQUAD)
+      target_link_libraries(hello sunquad)
+    endif()
   endif()
 endif()

-----------------------------------------------------------------------

Summary of changes:
 Tests/VSGNUFortran/fortran/CMakeLists.txt |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list