File: link-private.patch

package info (click to toggle)
netcdf-parallel 1%3A4.7.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 105,352 kB
  • sloc: ansic: 229,114; sh: 11,180; yacc: 2,561; makefile: 1,390; lex: 1,173; xml: 173; awk: 2
file content (14 lines) | stat: -rw-r--r-- 437 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Link TPLs privately.
Author: Nico Schlömer <nico.schloemer@gmail.com>

--- a/liblib/CMakeLists.txt
+++ b/liblib/CMakeLists.txt
@@ -98,7 +98,7 @@ IF(TLL_LIBS)
   LIST(REMOVE_DUPLICATES TLL_LIBS)
 ENDIF()
 
-TARGET_LINK_LIBRARIES(netcdf ${TLL_LIBS})
+TARGET_LINK_LIBRARIES(netcdf PRIVATE ${TLL_LIBS})
 SET(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} ${TLL_LIBS})
 IF(MSVC)
   SET_TARGET_PROPERTIES(netcdf PROPERTIES