Skip to content

Commit

Permalink
Default to Release build (#1126)
Browse files Browse the repository at this point in the history
* Default to Release build

* Dont update log4cplus version for Windows
  • Loading branch information
disa6302 authored Jan 17, 2024
1 parent e7ebd3e commit be5d85b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 35 deletions.
2 changes: 1 addition & 1 deletion CMake/Dependencies/libcurl-CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ set(CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${OPEN_SRC_INSTALL_PREFIX}
-DBUILD_CURL_EXE=0
-DHTTP_ONLY=1
-DCMAKE_BUILD_TYPE=Release)
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE})

# By default use openssl
if (USE_MBEDTLS)
Expand Down
14 changes: 0 additions & 14 deletions CMake/Dependencies/libjsmn-CMakeLists.txt

This file was deleted.

17 changes: 0 additions & 17 deletions CMake/Dependencies/libjsmn-add-cmakelists.patch

This file was deleted.

1 change: 1 addition & 0 deletions CMake/Dependencies/libkvscproducer-CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ ExternalProject_Add(libkvscproducer-download
GIT_TAG develop
SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/kvscproducer-src"
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/kvscproducer-build"
CMAKE_ARGS -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
Expand Down
6 changes: 3 additions & 3 deletions CMake/Dependencies/liblog4cplus-CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ include(ExternalProject)
if (WIN32)
ExternalProject_Add(project_log4cplus
GIT_REPOSITORY https://github.com/log4cplus/log4cplus
GIT_TAG REL_2_0_1
GIT_TAG REL_2_0_1 # If version set to 2.0.6, the unit tests seem to hang after completing all the runs. So keeping it at 2.0.1
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/build
TEST_COMMAND ""
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${OPEN_SRC_INSTALL_PREFIX} -DLOG4CPLUS_BUILD_TESTING=0 -DLOG4CPLUS_BUILD_LOGGINGSERVER=0 -DUNICODE=0 -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${OPEN_SRC_INSTALL_PREFIX} -DLOG4CPLUS_BUILD_TESTING=0 -DLOG4CPLUS_BUILD_LOGGINGSERVER=0 -DUNICODE=0 -DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
)
else()
ExternalProject_Add(project_log4cplus
GIT_REPOSITORY https://github.com/log4cplus/log4cplus
GIT_TAG REL_2_0_1
GIT_TAG REL_2_0_6 # Fixes the CATCH_REQUIRE related build errors encountered in MacOS M1
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/build
CONFIGURE_COMMAND ${CONFIGURE_COMMAND}
BUILD_COMMAND ${MAKE_EXE}
Expand Down
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ endif()
add_definitions(-DKVS_CA_CERT_PATH="${CMAKE_CURRENT_SOURCE_DIR}/certs/cert.pem")
add_definitions(-DCMAKE_DETECTED_CACERT_PATH)

if(NOT CMAKE_BUILD_TYPE)
message(STATUS "Setting CMAKE_BUILD_TYPE to Release by default")
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build." FORCE)
endif()


if(BUILD_DEPENDENCIES)
if(NOT EXISTS ${KINESIS_VIDEO_OPEN_SOURCE_SRC})
Expand Down

0 comments on commit be5d85b

Please sign in to comment.