Skip to content

Commit

Permalink
Set CMAKE_OBJCXX_STANDARD to the same value as CMAKE_CXX_STANDARD
Browse files Browse the repository at this point in the history
  • Loading branch information
Fulgen301 committed Sep 19, 2023
1 parent 79fe133 commit 4e684ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ project("LegacyClonk" LANGUAGES CXX ${LANGUAGE_OBJCXX})
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

if (APPLE)
set(CMAKE_OBJCXX_STANDARD ${CMAKE_CXX_STANDARD})
set(CMAKE_OBJCXX_STANDARD_REQUIRED ${CMAKE_CXX_STANDARD_REQUIRED})
endif ()

set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

include(CheckCXXSymbolExists)
Expand Down

0 comments on commit 4e684ec

Please sign in to comment.