From cbf3d06d35bc3ca194a331fd68281834f6f149a5 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 29 Mar 2026 17:58:26 +0200 Subject: examples: finalize the removal of common.cmake In addition, command line arguments have been overhauled for sanity and consistency. --- examples/boost/CMakeLists.txt | 6 +++--- examples/dynamic/CMakeLists.txt | 2 +- examples/simple/CMakeLists.txt | 2 +- examples/static/CMakeLists.txt | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'examples') diff --git a/examples/boost/CMakeLists.txt b/examples/boost/CMakeLists.txt index e7ac156..0e92e38 100644 --- a/examples/boost/CMakeLists.txt +++ b/examples/boost/CMakeLists.txt @@ -1,12 +1,12 @@ -cmake_minimum_required(VERSION 3.8) +cmake_minimum_required(VERSION 3.15) project(example_boost) -include(../../common.cmake) +set(CMAKE_CXX_STANDARD 11) +set(CMAKE_CXX_STANDARD_REQUIRED ON) find_package(Boost REQUIRED COMPONENTS filesystem) add_executable(foo foo.cpp) target_link_libraries(foo PRIVATE Boost::disable_autolinking Boost::filesystem) install(TARGETS foo RUNTIME DESTINATION bin) -install_pdbs(TARGETS foo DESTINATION bin) diff --git a/examples/dynamic/CMakeLists.txt b/examples/dynamic/CMakeLists.txt index e1e86b6..7c35f2e 100644 --- a/examples/dynamic/CMakeLists.txt +++ b/examples/dynamic/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.8) +cmake_minimum_required(VERSION 3.15) project(example_dynamic) diff --git a/examples/simple/CMakeLists.txt b/examples/simple/CMakeLists.txt index 6ab66d6..f2ba4d4 100644 --- a/examples/simple/CMakeLists.txt +++ b/examples/simple/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.8) +cmake_minimum_required(VERSION 3.15) project(example_simple) diff --git a/examples/static/CMakeLists.txt b/examples/static/CMakeLists.txt index 7af642d..c3ebbe4 100644 --- a/examples/static/CMakeLists.txt +++ b/examples/static/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.8) +cmake_minimum_required(VERSION 3.15) project(example_static) -- cgit v1.3