Skip to content

Commit

Permalink
Fix clang options for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin D. Weinberg committed Oct 28, 2024
1 parent 3443360 commit 2752d2e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
message(STATUS "Clang compiler version is: ${CMAKE_CXX_COMPILER_VERSION}")
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 18.0.0)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++")
endif()
endif()
Expand Down

0 comments on commit 2752d2e

Please sign in to comment.