Skip to content

Commit 73ef4cd

Browse files
author
devsh
committed
Merge remote-tracking branch 'remotes/origin/exBuiltinArchives'
2 parents 820cd3f + c790377 commit 73ef4cd

File tree

17 files changed

+738
-209
lines changed

17 files changed

+738
-209
lines changed

3rdparty/boost/CMakeLists.txt

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,25 @@ add_subdirectory(superproject/libs/wave EXCLUDE_FROM_ALL)
110110

111111
list(APPEND NBL_BOOST_TARGETS boost_wave) # wave
112112
foreach(BOOST_LIB IN LISTS NBL_BOOST_LIBS)
113-
if(TARGET boost_${BOOST_LIB}) # wave's deps
114-
list(APPEND NBL_BOOST_TARGETS boost_${BOOST_LIB})
113+
set(lib boost_${BOOST_LIB})
114+
if(TARGET ${lib}) # wave's deps
115+
list(APPEND NBL_BOOST_TARGETS ${lib})
115116
endif()
116117
endforeach()
117118

119+
# NOTE: wave *must* be compiled with config definitions, inserting them just before wave
120+
# include will lead to ABI mismatch hence we update the target and let inherit options
121+
target_compile_definitions(boost_wave
122+
PUBLIC BOOST_WAVE_ENABLE_COMMANDLINE_MACROS=1
123+
PUBLIC BOOST_WAVE_SUPPORT_PRAGMA_ONCE=0
124+
PUBLIC BOOST_WAVE_EMIT_PRAGMA_DIRECTIVES=1
125+
PUBLIC BOOST_WAVE_SERIALIZATION=0
126+
PUBLIC BOOST_WAVE_SUPPORT_INCLUDE_NEXT=0
127+
128+
# threading option: https://github.com/boostorg/wave/issues/237#issuecomment-2710251773
129+
PUBLIC BOOST_WAVE_SUPPORT_THREADING=0
130+
)
131+
118132
set(NBL_BOOST_TARGETS
119133
${NBL_BOOST_TARGETS}
120134
PARENT_SCOPE)

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ endif()
196196
option(NBL_BUILD_BULLET "Enable Bullet Physics building and integration?" OFF)
197197
option(NBL_BUILD_DOCS "Enable building documentation?" OFF) # No one has doxygen installed, plus we dont know when was the last time we generated working doxy and we'll use SphinX in the future
198198
option(NBL_ENABLE_PROJECT_JSON_CONFIG_VALIDATION "" ON)
199-
option(NBL_EMBED_BUILTIN_RESOURCES "Embed built-in resources?" ON)
199+
option(NBL_EMBED_BUILTIN_RESOURCES "Embed built-in resources?" OFF)
200200
option(NBL_ENABLE_DOCKER_INTEGRATION "Enables docker integration, if client is not found Docker Desktop will be installed" OFF)
201201

202202
if (NBL_ENABLE_DOCKER_INTEGRATION)
@@ -285,4 +285,5 @@ add_subdirectory(artifacts)
285285
option(NBL_CPACK_INCLUDE_EXAMPLES "CPack with examples and media" ON)
286286
include(cpack/package)
287287
include(build/info)
288-
export(TARGETS ${_NBL_3RDPARTY_TARGETS_} Nabla NAMESPACE Nabla:: APPEND FILE ${NBL_ROOT_PATH_BINARY}/NablaExport.cmake)
288+
export(TARGETS ${_NBL_3RDPARTY_TARGETS_} Nabla NAMESPACE Nabla:: APPEND FILE ${NBL_ROOT_PATH_BINARY}/NablaExport.cmake)
289+
NBL_ADJUST_FOLDERS(nabla)

CMakePresets.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"name": "ci-configure-base",
1111
"hidden": true,
1212
"cacheVariables": {
13+
"NBL_EMBED_BUILTIN_RESOURCES": "ON",
1314
"NBL_UPDATE_GIT_SUBMODULE": "OFF",
1415
"NBL_COMPILE_WITH_CUDA": "OFF",
1516
"NBL_BUILD_OPTIX": "OFF",

0 commit comments

Comments
 (0)