1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Merge pull request #944 from foxtran/patch-2

Enable -fexperimental-library only for C++ frontend of AppleClang
This commit is contained in:
Bartosz Taudul 2024-12-20 12:36:39 +01:00 committed by GitHub
commit 96e1cb17c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,9 @@ else()
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
add_compile_options(-fexperimental-library)
if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fexperimental-library>)
endif()
endif()
if(WIN32)
@ -51,4 +53,4 @@ endif()
file(GENERATE OUTPUT .gitignore CONTENT "*")
set(CMAKE_COLOR_DIAGNOSTICS ON)
set(CMAKE_COLOR_DIAGNOSTICS ON)