Skip to content

Commit

Permalink
Merge pull request #12 from Norman44/patch-1
Browse files Browse the repository at this point in the history
Update CMakeLists.txt
  • Loading branch information
mpromonet authored Dec 20, 2023
2 parents 0e74999 + fae5d7c commit 0d9c383
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ set (DETECT_OPENSSL "ON" CACHE STRING "Detect OPENSSL")
set(LIVE ${CMAKE_BINARY_DIR}/live)
if (NOT EXISTS ${LIVE})
file (DOWNLOAD http://www.live555.com/liveMedia/public/live555-latest.tar.gz ${CMAKE_BINARY_DIR}/live555.tar.gz )
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E tar xvf ${CMAKE_BINARY_DIR}/live555.tar.gz RESULT_VARIABLE unpack_result)
if(NOT unpack_result STREQUAL "0")
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${LIVE})
execute_process(COMMAND ${CMAKE_COMMAND} -E tar xvf ${CMAKE_BINARY_DIR}/live555.tar.gz WORKING_DIRECTORY ${CMAKE_BINARY_DIR} RESULT_VARIABLE unpack_result)
if(NOT unpack_result EQUAL "0")
message(FATAL_ERROR "Fetching live555 failed!")
endif()
endif()
Expand Down

0 comments on commit 0d9c383

Please sign in to comment.