Warning, /graphics/digikam/core/cmake/rules/RulesMacOS.cmake is written in an unsupported language. File is not indexed.
0001 # 0002 # SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier, <caulier dot gilles at gmail dot com> 0003 # 0004 # SPDX-License-Identifier: BSD-3-Clause 0005 # 0006 0007 # Increase the stack size to prevent crashes with GMic-qt. 0008 0009 if (APPLE) 0010 0011 if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU") 0012 0013 message(STATUS "Increase GCC linker stack size to 16MB under MacOS") 0014 0015 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--stack,16777216") 0016 # set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--stack,16777216") 0017 # set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--stack,16777216") 0018 0019 elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") 0020 0021 message(STATUS "Increase Clang linker stack size to 16MB under MacOS") 0022 0023 set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-stack_size -Wl,0x1000000") 0024 # set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-stack_size -Wl,0x1000000") 0025 # set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-stack_size -Wl,0x1000000") 0026 0027 endif() 0028 0029 endif()