Skip to content

Commit

Permalink
For cmake, adding add_link_options() to app CMakeLists, to force -L f…
Browse files Browse the repository at this point in the history
…or the lrose install location
  • Loading branch information
mike-dixon committed Nov 14, 2021
1 parent 146b7ab commit 3d541e5
Show file tree
Hide file tree
Showing 449 changed files with 1,347 additions and 449 deletions.
4 changes: 3 additions & 1 deletion build/cmake/createCMakeLists.py
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,9 @@ def writeCMakeListsApp(appName, appDir, appCompileFileList,
fo.write("if(IS_DIRECTORY /usr/local/lib)\n")
fo.write(" link_directories (/usr/local/lib)\n")
fo.write("endif()\n")
fo.write("add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )\n")
fo.write('if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")\n')
fo.write(' add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )\n')
fo.write('endif()\n')
fo.write("\n")

fo.write("# link libs\n")
Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/Ascii2Radx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/Dsr2Radx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/FixCfradialPaths/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/FixRadxPointing/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/FixRadxValues/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/Radx2Dsr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/Radx2Grid/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxBeamBlock/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxBufr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxCalUpdate/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxCheck/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxClutMon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxConvert/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxCov2Mom/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxCreateVol/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxDiffFields/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxDiffVol/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxDwellCombine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxEvad/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxFilter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxHca/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxKdp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxMergeFields/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxMergeVols/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxMesoCyclone/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxModelQc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxMon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxPartRain/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxPersistentClutter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxPid/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxPrint/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxQc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxQpe/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxRate/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
4 changes: 3 additions & 1 deletion codebase/apps/Radx/src/RadxSunMon/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ endif()
if(IS_DIRECTORY /usr/local/lib)
link_directories (/usr/local/lib)
endif()
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
if(${CMAKE_VERSION} VERSION_GREATER "3.13.0")
add_link_options( -L${CMAKE_INSTALL_PREFIX}/lib )
endif()

# link libs

Expand Down
Loading

0 comments on commit 3d541e5

Please sign in to comment.