Skip to content

Commit

Permalink
Fix PURE_DYNAMIC_CAST-related build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Masterkatze committed Nov 27, 2023
1 parent 2692c64 commit bf43070
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ if (STATIC_BUILD)
endif()
message(STATUS "STATIC_BUILD: ${STATIC_BUILD}")

option(CMAKE_UNITY_BUILD "Use unity build" OFF)
message(STATUS "CMAKE_UNITY_BUILD: ${CMAKE_UNITY_BUILD}")

find_program(CCACHE_FOUND ccache)
if (CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
Expand Down
1 change: 1 addition & 0 deletions src/Layers/xrRenderPC_GL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ target_compile_definitions(xrRender_GL
PRIVATE
XRRENDER_GL_EXPORTS
USE_OGL
PURE_DYNAMIC_CAST
)

set_target_properties(xrRender_GL PROPERTIES
Expand Down
1 change: 1 addition & 0 deletions src/xrEngine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ target_link_libraries(xrEngine
target_compile_definitions(xrEngine
PRIVATE
ENGINE_BUILD
PURE_DYNAMIC_CAST
)

set_target_properties(xrEngine PROPERTIES
Expand Down
1 change: 1 addition & 0 deletions src/xrPhysics/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ target_link_libraries(xrPhysics
target_compile_definitions(xrPhysics
PRIVATE
XRPHYSICS_EXPORTS
PURE_DYNAMIC_CAST
)

set_target_properties(xrPhysics PROPERTIES
Expand Down
1 change: 1 addition & 0 deletions src/xrUICore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ endif()
target_compile_definitions(xrUICore
PRIVATE
XRUICORE_EXPORTS
PURE_DYNAMIC_CAST
)

set_target_properties(xrUICore PROPERTIES
Expand Down

0 comments on commit bf43070

Please sign in to comment.