Commit d5eba27de51d2ad1d5d36e97b9c74c8d565a1f48

Authored by Benjamin Renard
1 parent 856f1995
Exists in master and in 1 other branch ubuntu

Quick fix to support tirpc (for fedora 30)

CMakeLists.txt
... ... @@ -27,6 +27,18 @@ endif( CMAKE_SIZEOF_VOID_P EQUAL 8 )
27 27  
28 28 find_package( Threads REQUIRED )
29 29  
  30 +# Quick fix to support tirpc => ToDo use find_package
  31 +if (EXISTS "/usr/include/tirpc")
  32 + include_directories("/usr/include/tirpc")
  33 +endif()
  34 +
  35 +if (EXISTS "/usr/lib64/libtirpc.so")
  36 + set (TIRPC "tirpc")
  37 +else()
  38 + set (TIRPC "")
  39 +endif()
  40 +#
  41 +
30 42 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
31 43  
32 44 find_package( Log4Cxx REQUIRED)
... ...
src/DDClientLibC/CMakeLists.txt
... ... @@ -16,6 +16,7 @@ ADD_LIBRARY( DDClientLibC SHARED ${source_files} )
16 16  
17 17 target_link_libraries(
18 18 DDClientLibC
  19 + ${TIRPC}
19 20 ${CMAKE_THREAD_LIBS_INIT}
20 21 )
21 22  
... ...
src/DDClientLibCpp/CMakeLists.txt
... ... @@ -16,6 +16,7 @@ ADD_LIBRARY( DDClientLibCpp SHARED ${source_files} )
16 16  
17 17 target_link_libraries(
18 18 DDClientLibCpp
  19 + ${TIRPC}
19 20 ${CMAKE_THREAD_LIBS_INIT}
20 21 )
21 22  
... ...