Skip to content

Commit

Permalink
target compiler options
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola-cab committed Nov 17, 2023
1 parent dee767f commit f297ef8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cmake/Utilities.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ macro(enable_stdfilesystem _target)
# check, so just disable libc++ availability checks (which will result
# in crashes at runtime if running on too old of a macOS version).
#target_compile_definitions("${_target}" PRIVATE _LIBCPP_DISABLE_AVAILABILITY)
add_compile_options(-nostdinc++)
target_compile_options("${_target}" PRIVATE -nostdinc++ -nostdinc++)
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9.0)
target_link_libraries("${_target}" stdc++fs)
Expand Down

0 comments on commit f297ef8

Please sign in to comment.