Browse Source

cmake: set -stdlib=libc++ globally

Signed-off-by: falkTX <falktx@falktx.com>
fix-audiofile-buffering
falkTX 1 year ago
parent
commit
d1810f7e31
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 5 additions and 3 deletions
  1. +4
    -2
      cmake/CMakeLists.txt
  2. +1
    -1
      cmake/Info-framework.plist.in

+ 4
- 2
cmake/CMakeLists.txt View File

@@ -22,6 +22,10 @@ set(CMAKE_VISIBILITY_INLINES_HIDDEN TRUE)

set_property(GLOBAL PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)

if(APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif()

#######################################################################################################################
# fix compat with cmake < 3.26

@@ -164,7 +168,6 @@ function(set_common_target_properties TARGET)

target_compile_options(${TARGET}
PRIVATE
$<$<BOOL:${APPLE}>:-stdlib=libc++>
$<$<BOOL:${MSVC}>:/wd4244>
$<$<BOOL:${MSVC}>:/wd4267>
$<$<BOOL:${MSVC}>:/wd4273>
@@ -172,7 +175,6 @@ function(set_common_target_properties TARGET)

target_link_options(${TARGET}
PRIVATE
$<$<BOOL:${APPLE}>:-stdlib=libc++>
$<$<C_COMPILER_ID:GNU>:-Wl,--no-undefined>
)



+ 1
- 1
cmake/Info-framework.plist.in View File

@@ -30,6 +30,6 @@
<string>@CARLA_OSX_DEPLOYMENT_TARGET@</string>
<key>NSHumanReadableCopyright</key>
<string>(C) 2011-2023 Filipe Coelho.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version</string>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.</string>
</dict>
</plist>

Loading…
Cancel
Save