diff options
author | Chuck Atkins <chuck.atkins@kitware.com> | 2020-12-22 09:47:04 -0500 |
---|---|---|
committer | Chuck Atkins <chuck.atkins@kitware.com> | 2020-12-23 08:55:45 -0500 |
commit | 72e7c45e984c006c12a4cb8159d3fa3784c02212 (patch) | |
tree | 823979fc5f29db333606abcc17a1cfd6b4f1b311 /Tests/VSGNUFortran | |
parent | 440531e0f9abba65839e2e242367c6091cc4789c (diff) | |
download | cmake-72e7c45e984c006c12a4cb8159d3fa3784c02212.tar.gz |
Tests: Bump CMake minimum required in tests to 2.8.12
Since 3.19, CMake generates a deprecation warning when using a minimum
version less than 2.8.12. This eliminates those warnings generated
during tests, which are typically hidden from the user and developer but
are being generated nonetheless.
Diffstat (limited to 'Tests/VSGNUFortran')
-rw-r--r-- | Tests/VSGNUFortran/subdir/fortran/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/VSGNUFortran/subdir/fortran/CMakeLists.txt b/Tests/VSGNUFortran/subdir/fortran/CMakeLists.txt index f68e38e20f..abd0628365 100644 --- a/Tests/VSGNUFortran/subdir/fortran/CMakeLists.txt +++ b/Tests/VSGNUFortran/subdir/fortran/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8) +cmake_minimum_required(VERSION 2.8.12) project(FortranHello Fortran C) # add a function to test for -lsunquad on sunpro sun systems. @@ -33,7 +33,7 @@ FortranCInterface_HEADER(HelloWorldFCMangle.h SYMBOLS hello world) add_library(hello SHARED hello.f) add_library(world SHARED world.f) -target_link_libraries(hello world) +target_link_libraries(hello PRIVATE world) if(CMAKE_Fortran_COMPILER_ID MATCHES SunPro) target_link_libraries(hello PRIVATE fsu) if(CMAKE_Fortran_PLATFORM_ID MATCHES SunOS) |