Skip to content

Commit

Permalink
CMake: Provide build flag to enable libc++ standard library.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao authored and chennes committed Jan 29, 2025
1 parent 7671501 commit ade3ae0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cMake/FreeCAD_Helpers/CompilerChecksAndSetups.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ macro(CompilerChecksAndSetups)
endif()
endif()
endif(BUILD_DYNAMIC_LINK_PYTHON)

if(BUILD_USE_LIBCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif()
endif(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGXX)

if(CMAKE_COMPILER_IS_CLANGXX)
Expand Down

0 comments on commit ade3ae0

Please sign in to comment.