cmake-msvc.patch 1.2 KB

123456789101112131415161718192021222324252627282930
  1. diff --git a/rpcapd/CMakeLists.txt b/rpcapd/CMakeLists.txt
  2. index 555d6d40..7446687e 100644
  3. --- a/rpcapd/CMakeLists.txt
  4. +++ b/rpcapd/CMakeLists.txt
  5. @@ -87,13 +87,13 @@ if(WIN32 OR ((CMAKE_USE_PTHREADS_INIT OR PTHREADS_FOUND) AND HAVE_CRYPT))
  6. OSX_ARCHITECTURES "${OSX_EXECUTABLE_ARCHITECTURES}")
  7. endif()
  8. - if(WIN32)
  9. + if(BUILD_SHARED_LIBS)
  10. target_link_libraries(rpcapd ${LIBRARY_NAME}
  11. ${RPCAPD_LINK_LIBRARIES} ${PCAP_LINK_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
  12. - else(WIN32)
  13. + else(BUILD_SHARED_LIBS)
  14. target_link_libraries(rpcapd ${LIBRARY_NAME}_static
  15. ${RPCAPD_LINK_LIBRARIES} ${PCAP_LINK_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
  16. - endif(WIN32)
  17. + endif(BUILD_SHARED_LIBS)
  18. ######################################
  19. # Install rpcap daemon and man pages
  20. @@ -119,7 +119,7 @@ if(WIN32 OR ((CMAKE_USE_PTHREADS_INIT OR PTHREADS_FOUND) AND HAVE_CRYPT))
  21. # will determine where it goes.
  22. #
  23. if(CMAKE_SIZEOF_VOID_P EQUAL 8)
  24. - install(TARGETS rpcapd DESTINATION bin/amd64)
  25. + install(TARGETS rpcapd DESTINATION bin)
  26. else(CMAKE_SIZEOF_VOID_P EQUAL 8)
  27. install(TARGETS rpcapd DESTINATION bin)
  28. endif(CMAKE_SIZEOF_VOID_P EQUAL 8)