From fb1858adcc1f124770ece895228805743a66b95b Mon Sep 17 00:00:00 2001 From: Adam Kewley Date: Fri, 1 Nov 2024 13:08:24 +0100 Subject: [PATCH] Drop CXX_STANDARD_REQUIRED (handled by target_compile_features) --- apps/hellotriangle/CMakeLists.txt | 1 - apps/osc/CMakeLists.txt | 1 - src/OpenSimCreator/CMakeLists.txt | 3 --- src/oscar/CMakeLists.txt | 6 +++--- src/oscar_demos/CMakeLists.txt | 1 - tests/TestOpenSimCreator/CMakeLists.txt | 1 - tests/testoscar/CMakeLists.txt | 1 - tests/testoscar_demos/CMakeLists.txt | 1 - 8 files changed, 3 insertions(+), 12 deletions(-) diff --git a/apps/hellotriangle/CMakeLists.txt b/apps/hellotriangle/CMakeLists.txt index ffd382c5f..0b77e2217 100644 --- a/apps/hellotriangle/CMakeLists.txt +++ b/apps/hellotriangle/CMakeLists.txt @@ -3,7 +3,6 @@ add_executable(hellotriangle ) set_target_properties(hellotriangle PROPERTIES CXX_EXTENSIONS OFF - CXX_STANDARD_REQUIRED ON ) target_compile_features(hellotriangle PUBLIC cxx_std_20 diff --git a/apps/osc/CMakeLists.txt b/apps/osc/CMakeLists.txt index 25861e7e6..df52df2cf 100644 --- a/apps/osc/CMakeLists.txt +++ b/apps/osc/CMakeLists.txt @@ -74,7 +74,6 @@ add_executable(osc ) set_target_properties(osc PROPERTIES CXX_EXTENSIONS OFF - CXX_STANDARD_REQUIRED ON ) target_compile_features(osc PUBLIC cxx_std_20 diff --git a/src/OpenSimCreator/CMakeLists.txt b/src/OpenSimCreator/CMakeLists.txt index 61184a413..5570f31e2 100644 --- a/src/OpenSimCreator/CMakeLists.txt +++ b/src/OpenSimCreator/CMakeLists.txt @@ -442,7 +442,6 @@ add_library(OpenSimCreator STATIC ) set_target_properties(OpenSimCreator PROPERTIES CXX_EXTENSIONS OFF - CXX_STANDARD_REQUIRED ON ) target_compile_features(OpenSimCreator PUBLIC cxx_std_20 @@ -461,13 +460,11 @@ target_compile_options(OpenSimCreator PUBLIC -Wno-array-bounds > ) - target_compile_definitions(OpenSimCreator PRIVATE # OpenSim's `spdlog` transitively uses a deprecated `stdext::checked_array_iterator` $<$:_SILENCE_STDEXT_ARR_ITERS_DEPRECATION_WARNING> ) target_include_directories(OpenSimCreator PUBLIC - # so that the source code can `#include ` ${CMAKE_CURRENT_SOURCE_DIR}/.. ) diff --git a/src/oscar/CMakeLists.txt b/src/oscar/CMakeLists.txt index 1e705d4af..4a13692cf 100644 --- a/src/oscar/CMakeLists.txt +++ b/src/oscar/CMakeLists.txt @@ -10,6 +10,8 @@ set(OSC_RUNTIME_PERF_MEASUREMENTS_ENABLED ON # find dependencies (usually built+installed from `third_party/`) if (NOT ${OSC_EMSCRIPTEN}) + # these libraries are either provided by emscripten later on, or aren't + # supported by the emscripten build (they're #ifdef'd out) find_package(OpenGL REQUIRED) find_package(glew REQUIRED CONFIG) find_package(SDL2 REQUIRED CONFIG) @@ -456,8 +458,7 @@ add_library(oscar STATIC Utils/UID.h Utils/UndoRedo.cpp Utils/UndoRedo.h - # TODO: reenable once MacOS gets pmr::memory_resource support - # Utils/VariableLengthArray.h + # Utils/VariableLengthArray.h # disabled, because MacOS doesn't support `std::pmr::memory_resource` Utils/WatchableLifetime.h Variant/Variant.cpp @@ -482,7 +483,6 @@ add_library(oscar STATIC set_target_properties(oscar PROPERTIES CXX_EXTENSIONS OFF - CXX_STANDARD_REQUIRED ON ) target_compile_features(oscar PUBLIC cxx_std_20 diff --git a/src/oscar_demos/CMakeLists.txt b/src/oscar_demos/CMakeLists.txt index b5c2f44b8..4586cb95c 100644 --- a/src/oscar_demos/CMakeLists.txt +++ b/src/oscar_demos/CMakeLists.txt @@ -86,7 +86,6 @@ add_library(oscar_demos STATIC ) set_target_properties(oscar_demos PROPERTIES CXX_EXTENSIONS OFF - CXX_STANDARD_REQUIRED ON ) target_compile_features(oscar_demos PUBLIC cxx_std_20 diff --git a/tests/TestOpenSimCreator/CMakeLists.txt b/tests/TestOpenSimCreator/CMakeLists.txt index eca716fdc..426cf78e6 100644 --- a/tests/TestOpenSimCreator/CMakeLists.txt +++ b/tests/TestOpenSimCreator/CMakeLists.txt @@ -39,7 +39,6 @@ add_executable(TestOpenSimCreator ) set_target_properties(TestOpenSimCreator PROPERTIES CXX_EXTENSIONS OFF - CXX_STANDARD_REQUIRED ON ) target_compile_features(TestOpenSimCreator PUBLIC cxx_std_20 diff --git a/tests/testoscar/CMakeLists.txt b/tests/testoscar/CMakeLists.txt index 3a7e03aa6..e6604c107 100644 --- a/tests/testoscar/CMakeLists.txt +++ b/tests/testoscar/CMakeLists.txt @@ -129,7 +129,6 @@ add_executable(testoscar ) set_target_properties(testoscar PROPERTIES CXX_EXTENSIONS OFF - CXX_STANDARD_REQUIRED ON ) target_compile_features(testoscar PUBLIC cxx_std_20 diff --git a/tests/testoscar_demos/CMakeLists.txt b/tests/testoscar_demos/CMakeLists.txt index 9b1265f5f..2daa0ca25 100644 --- a/tests/testoscar_demos/CMakeLists.txt +++ b/tests/testoscar_demos/CMakeLists.txt @@ -7,7 +7,6 @@ add_executable(testoscar_demos ) set_target_properties(testoscar_demos PROPERTIES CXX_EXTENSIONS OFF - CXX_STANDARD_REQUIRED ON ) target_compile_features(testoscar_demos PUBLIC cxx_std_20