Don't force libc++ with clang (#1984)

Clang works with libstdc++.
This commit is contained in:
aeubanks
2020-04-30 13:24:58 -07:00
committed by GitHub
parent e16017bd1a
commit bbafb49b3a
4 changed files with 0 additions and 16 deletions
-4
View File
@@ -8,10 +8,6 @@ add_library("GtkModule"
"arch/LoadingWindow/LoadingWindow_GtkModule.h")
sm_add_compile_flag("GtkModule" "-std=${SM_CPP_STANDARD}")
if(CMAKE_CXX_COMPILER MATCHES "clang")
sm_add_compile_flag("GtkModule" "-stdlib=libc++")
set_target_properties("GtkModule" PROPERTIES LINK_FLAGS "-stdlib=libc++")
endif()
# It is normally not appropriate to set the prefix to the empty string. This is
# to maintain compatibility with the current source. At some point, it may be
-6
View File
@@ -390,12 +390,6 @@ else() # Linux
endif()
sm_add_compile_flag("${SM_EXE_NAME}" "-std=${SM_CPP_STANDARD}")
if(CMAKE_CXX_COMPILER MATCHES "clang")
sm_add_compile_flag("${SM_EXE_NAME}" "-stdlib=libc++")
set_target_properties("${SM_EXE_NAME}"
PROPERTIES LINK_FLAGS "-stdlib=libc++")
sm_add_compile_flag("jsoncpp" "-stdlib=libc++")
endif()
endif()
set_property(TARGET "${SM_EXE_NAME}" PROPERTY FOLDER "Internal Libraries")