Skip to content

Commit

Permalink
Use C++11 as minimal required only
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <uilianries@gmail.com>
  • Loading branch information
uilianries committed May 16, 2024
1 parent 6e64980 commit b764c59
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ if(BUILD_SHARED_LIBS OR NOT DEFINED CMAKE_POSITION_INDEPENDENT_CODE)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()

set(CMAKE_CXX_STANDARD 11)

# Set the test samples output directory
if(BMX_TEST_SAMPLES_DIR STREQUAL "")
set(new_samples_dir ${CMAKE_CURRENT_BINARY_DIR}/test_samples)
Expand Down
2 changes: 0 additions & 2 deletions deps/libMXF/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ if(BUILD_SHARED_LIBS OR NOT DEFINED CMAKE_POSITION_INDEPENDENT_CODE)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()

set(CMAKE_CXX_STANDARD 11)

# Set the test samples output directory
if(LIBMXF_TEST_SAMPLES_DIR STREQUAL "")
set(new_samples_dir ${CMAKE_CURRENT_BINARY_DIR}/test_samples)
Expand Down
2 changes: 0 additions & 2 deletions deps/libMXFpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ if(BUILD_SHARED_LIBS OR NOT DEFINED CMAKE_POSITION_INDEPENDENT_CODE)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif()

set(CMAKE_CXX_STANDARD 11)

if(MSVC)
add_compile_options(/W3 /EHsc)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
Expand Down
2 changes: 2 additions & 0 deletions deps/libMXFpp/libMXF++/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ add_library(MXFpp
${MXFpp_sources}
)

target_compile_features(MXFpp PUBLIC cxx_std_11)

target_include_directories(MXFpp PUBLIC
${PROJECT_SOURCE_DIR}
)
Expand Down
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ target_include_directories(bmx PUBLIC
${PROJECT_SOURCE_DIR}/include
)

target_compile_features(bmx PUBLIC cxx_std_11)

# Add path to header files if not included in MSVC distribution
if(MSVC)
include(CheckIncludeFile)
Expand Down

0 comments on commit b764c59

Please sign in to comment.