fix(build): restore global C++17 and macOS plugin linker flags

This commit is contained in:
jolavillette 2026-06-01 18:48:04 +02:00
parent 72cb4eabd2
commit e6d8909b0a
4 changed files with 14 additions and 3 deletions

View File

@ -6,6 +6,17 @@ cmake_minimum_required(VERSION 3.5.0)
set(CMAKE_POLICY_VERSION_MINIMUM 3.5)
project(retroshare-monorepo)
# Force C++17 globally for all targets (including plugins)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(APPLE)
# On macOS, allow undefined symbols in shared modules/libraries at link time
# because they will be resolved at runtime by the host executable (retroshare-gui)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -undefined dynamic_lookup")
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -undefined dynamic_lookup")
endif()
# Global setting to allow executables to export symbols for plugin/module linking
set(CMAKE_ENABLE_EXPORTS ON)

@ -1 +1 @@
Subproject commit b60973cc04a00c1cf5620c5b633b524405d55cb8
Subproject commit e7086b28c0095c9854c0e07fe7def1ceabd04340

@ -1 +1 @@
Subproject commit edfc638a6af87d0f60489632416105e1fa13fc4e
Subproject commit 22b2939858e83791713e49cc450e100fcacdac59

@ -1 +1 @@
Subproject commit 8623304b62294dafbe477573f321a464fef721dd
Subproject commit 6b61f1cdc98d25d9a2dfaca69b30862915cb2d5a