[Cmake-commits] CMake branch, next, updated. v3.3.2-3436-gaaa4be4
Brad King
brad.king at kitware.com
Thu Oct 1 10:52:38 EDT 2015
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 aaa4be441968ee9e6344e182ef7e0f8e081f9b34 (commit)
via 7bc202ccd49b42eacac78d7494f7aab0599f9c7b (commit)
from 399b5bfd37b1fcd48e566cb7c8908333b6cc1dc8 (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 -----------------------------------------------------------------
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=aaa4be441968ee9e6344e182ef7e0f8e081f9b34
commit aaa4be441968ee9e6344e182ef7e0f8e081f9b34
Merge: 399b5bf 7bc202c
Author: Brad King <brad.king at kitware.com>
AuthorDate: Thu Oct 1 10:52:38 2015 -0400
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Thu Oct 1 10:52:38 2015 -0400
Merge topic 'test-VSGNUFortran-oracle-link' into next
7bc202cc Tests: Simplify VSGNUFortran Oracle-specific link lines
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7bc202ccd49b42eacac78d7494f7aab0599f9c7b
commit 7bc202ccd49b42eacac78d7494f7aab0599f9c7b
Author: Brad King <brad.king at kitware.com>
AuthorDate: Thu Oct 1 10:48:38 2015 -0400
Commit: Brad King <brad.king at kitware.com>
CommitDate: Thu Oct 1 10:48:38 2015 -0400
Tests: Simplify VSGNUFortran Oracle-specific link lines
On an Oracle 12.4 build the c_using_fortran executable cannot find the
"fsu" library at runtime. Since this is an implementation detail of the
"hello" library, link that library to it privately so that "-lfsu" does
not propagate to the executables consuming it.
diff --git a/Tests/VSGNUFortran/subdir/fortran/CMakeLists.txt b/Tests/VSGNUFortran/subdir/fortran/CMakeLists.txt
index 3ee1855..f68e38e 100644
--- a/Tests/VSGNUFortran/subdir/fortran/CMakeLists.txt
+++ b/Tests/VSGNUFortran/subdir/fortran/CMakeLists.txt
@@ -35,12 +35,12 @@ add_library(hello SHARED hello.f)
add_library(world SHARED world.f)
target_link_libraries(hello world)
if(CMAKE_Fortran_COMPILER_ID MATCHES SunPro)
- target_link_libraries(hello fsu)
+ target_link_libraries(hello PRIVATE fsu)
if(CMAKE_Fortran_PLATFORM_ID MATCHES SunOS)
- target_link_libraries(hello sunmath m)
+ target_link_libraries(hello PRIVATE sunmath m)
test_sunquad(CMAKE_HAS_SUNQUAD)
if(CMAKE_HAS_SUNQUAD)
- target_link_libraries(hello sunquad)
+ target_link_libraries(hello PRIVATE sunquad)
endif()
endif()
endif()
-----------------------------------------------------------------------
Summary of changes:
Tests/VSGNUFortran/subdir/fortran/CMakeLists.txt | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list