Advertisement
Guest User

fix patch

a guest
May 4th, 2021
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 1.00 KB | None | 0 0
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index 9b89507..a389942 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -14,8 +14,6 @@ get_directory_property(IS_SUBPROJECT PARENT_DIRECTORY)
  6.  project(iris)
  7.  cmake_minimum_required(VERSION 3.2.0)
  8.  
  9. -include(CMakeDependentOption)
  10. -
  11.  #Set automoc and autouic policy
  12.  if(POLICY CMP0071)
  13.      if(${CMAKE_VERSION} VERSION_LESS "3.10.0")
  14. diff --git a/cmake/modules/IrisSCTP.cmake b/cmake/modules/IrisSCTP.cmake
  15. index 58a94f7..4eaa12e 100644
  16. --- a/cmake/modules/IrisSCTP.cmake
  17. +++ b/cmake/modules/IrisSCTP.cmake
  18. @@ -1,3 +1,6 @@
  19. +cmake_minimum_required(VERSION 3.2.0)
  20. +
  21. +include(CMakeDependentOption)
  22.  cmake_dependent_option( BUNDLED_USRSCTP
  23.      "Compile compatible usrsctp lib when system one is not available or uncompatible (required for datachannel jingle transport)"
  24.      OFF "JINGLE_SCTP" OFF)
  25. @@ -80,4 +83,4 @@ endif()
  26.  include_directories(
  27.      ${sctpLab_INCLUDES}
  28.  )
  29. -add_compile_definitions(-DJINGLE_SCTP)
  30. +add_definitions(-DJINGLE_SCTP)
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement