Skip to content

Commit c45f29c

Browse files
author
kevyuu
committed
Merge branch 'master' into mesh_loaders_kevin
2 parents c6dd9ac + 73ef4cd commit c45f29c

File tree

19 files changed

+741
-215
lines changed

19 files changed

+741
-215
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",

cmake/adjust/template/vendor/impl/frontend/MSVC.cmake

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,9 @@ NBL_REQUEST_COMPILE_OPTION_SUPPORT(LANG ${LANG} CONFIG RELWITHDEBINFO COMPILE_OP
5858
/Ob1 # https://learn.microsoft.com/en-us/cpp/build/reference/ob-inline-function-expansion?view=msvc-170
5959
/Oy- # https://learn.microsoft.com/en-us/cpp/build/reference/oy-frame-pointer-omission?view=msvc-170
6060
/DNDEBUG # https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/assert-macro-assert-wassert?view=msvc-170
61-
/GL # https://learn.microsoft.com/en-us/cpp/build/reference/gl-whole-program-optimization?view=msvc-170
6261
/Gy # https://learn.microsoft.com/en-us/cpp/build/reference/gy-enable-function-level-linking?view=msvc-170
6362
/sdl- # https://learn.microsoft.com/en-us/cpp/build/reference/sdl-enable-additional-security-checks?view=msvc-170
6463

6564
LINK_OPTIONS
66-
/INCREMENTAL:NO # https://learn.microsoft.com/en-us/cpp/build/reference/incremental-link-incrementally?view=msvc-170 (note: cannot use /INCREMENTAL with /LTCG:incremental, would cause fallback)
67-
/LTCG:incremental # https://learn.microsoft.com/en-us/cpp/build/reference/ltcg-link-time-code-generation?view=msvc-170
65+
/INCREMENTAL # https://learn.microsoft.com/en-us/cpp/build/reference/incremental-link-incrementally?view=msvc-170
6866
)

0 commit comments

Comments
 (0)