diff options
author | Brad King <brad.king@kitware.com> | 2015-10-01 14:48:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-10-01 14:48:38 (GMT) |
commit | 7bc202ccd49b42eacac78d7494f7aab0599f9c7b (patch) | |
tree | e3292337103b604894a1a77901cedca03001ddfd /Tests/VSGNUFortran | |
parent | f23ab1a1501cf82a04b9f24c3324e314afd53fab (diff) | |
download | CMake-7bc202ccd49b42eacac78d7494f7aab0599f9c7b.zip CMake-7bc202ccd49b42eacac78d7494f7aab0599f9c7b.tar.gz CMake-7bc202ccd49b42eacac78d7494f7aab0599f9c7b.tar.bz2 |
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.
Diffstat (limited to 'Tests/VSGNUFortran')
-rw-r--r-- | Tests/VSGNUFortran/subdir/fortran/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
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() |