Skip to content

Commit

Permalink
try fix osx build
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalik committed Aug 26, 2023
1 parent 4651c30 commit db12dae
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,16 @@ set_directory_properties(PROPERTIES CORRADE_USE_PEDANTIC_FLAGS OFF)
set_directory_properties(PROPERTIES CORRADE_CXX_STANDARD ${CMAKE_CXX_STANDARD})
set_directory_properties(PROPERTIES INTERFACE_CORRADE_CXX_STANDARD ${CMAKE_CXX_STANDARD})

if(MSVC)
add_compile_options(-GR-)
else()
if(NOT (FLOORMAT_SUBMODULE-DEPENDENCIES AND FLOORMAT_SUBMODULE-RANGES))
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
elseif(NOT APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -frtti")
endif()
endif()

add_subdirectory(external)

if(CMAKE_SIZEOF_VOID_P GREATER_EQUAL 8)
Expand All @@ -169,16 +179,6 @@ else()
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-includecompat/prelude.hpp>)
endif()

if(MSVC)
add_compile_options(-GR-)
else()
if(NOT (FLOORMAT_SUBMODULE-DEPENDENCIES AND FLOORMAT_SUBMODULE-RANGES))
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -frtti")
endif()
endif()

fm_run_hook(fm-userconfig-src)

if (CMAKE_CXX_COMPILER_ID MATCHES "Clang$")
Expand Down

0 comments on commit db12dae

Please sign in to comment.