diff options
| author | Egor Tensin <egor@tensin.name> | 2026-03-29 17:58:26 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-03-30 10:10:47 +0200 |
| commit | cbf3d06d35bc3ca194a331fd68281834f6f149a5 (patch) | |
| tree | cae61f2688d76121583567dcfe5f38b0b01cd362 /examples | |
| parent | project.boost.build: saner command line options (diff) | |
| download | cmake-common-cbf3d06d35bc3ca194a331fd68281834f6f149a5.tar.gz cmake-common-cbf3d06d35bc3ca194a331fd68281834f6f149a5.zip | |
examples: finalize the removal of common.cmake
In addition, command line arguments have been overhauled for sanity and
consistency.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/boost/CMakeLists.txt | 6 | ||||
| -rw-r--r-- | examples/dynamic/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | examples/simple/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | examples/static/CMakeLists.txt | 2 |
4 files changed, 6 insertions, 6 deletions
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) |
