Browse Source

Updated CMakeLists

Paul-Louis Ageneau 5 years ago
parent
commit
37ca38999c
1 changed files with 4 additions and 4 deletions
  1. 4 4
      CMakeLists.txt

+ 4 - 4
CMakeLists.txt

@@ -26,12 +26,12 @@ set(TESTS_SOURCES
 )
 )
 
 
 # Hack because usrsctp uses CMAKE_SOURCE_DIR instead of CMAKE_CURRENT_SOURCE_DIR
 # Hack because usrsctp uses CMAKE_SOURCE_DIR instead of CMAKE_CURRENT_SOURCE_DIR
-set(CMAKE_REQUIRED_FLAGS "-I${CMAKE_CURRENT_SOURCE_DIR}/usrsctp/usrsctplib")
+set(CMAKE_REQUIRED_FLAGS "-I${CMAKE_CURRENT_SOURCE_DIR}/deps/usrsctp/usrsctplib")
 
 
-add_subdirectory(usrsctp EXCLUDE_FROM_ALL)
+add_subdirectory(deps/usrsctp EXCLUDE_FROM_ALL)
 
 
 # Set include directory and custom options to make usrsctp compile with recent g++
 # Set include directory and custom options to make usrsctp compile with recent g++
-target_include_directories(usrsctp-static PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/usrsctp/usrsctplib)
+target_include_directories(usrsctp-static PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/deps/usrsctp/usrsctplib)
 
 
 if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
 if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
   # using regular Clang or AppleClang: Needed since they don't have -Wno-error=format-truncation
   # using regular Clang or AppleClang: Needed since they don't have -Wno-error=format-truncation
@@ -43,7 +43,7 @@ else()
 	  target_compile_options(usrsctp-static PRIVATE -Wno-error=format-truncation)
 	  target_compile_options(usrsctp-static PRIVATE -Wno-error=format-truncation)
 	else()
 	else()
 	  target_compile_options(usrsctp-static PRIVATE -Wno-error=address-of-packed-member -Wno-error=format-truncation)
 	  target_compile_options(usrsctp-static PRIVATE -Wno-error=address-of-packed-member -Wno-error=format-truncation)
-	endif()  
+	endif()
   else()
   else()
     # all other compilers
     # all other compilers
     target_compile_options(usrsctp-static PRIVATE -Wno-error=address-of-packed-member -Wno-error=format-truncation)
     target_compile_options(usrsctp-static PRIVATE -Wno-error=address-of-packed-member -Wno-error=format-truncation)