File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ option(XRAY_ENABLE_TRACY "Enable tracy profiler" OFF)
2121include (XRay.Build )
2222include (XRay.Packaging)
2323
24+ add_compile_definitions (
25+ $<$<CONFIG:ReleaseMasterGold>:MASTER_GOLD>
26+ $<$<NOT :$<BOOL :${BUILD_SHARED_LIBS} >>:XRAY_STATIC_BUILD>
27+ )
28+
2429add_subdirectory (Externals)
2530add_subdirectory (src)
2631add_subdirectory (res)
Original file line number Diff line number Diff line change @@ -89,6 +89,9 @@ target_compile_definitions(xrODE
8989 PUBLIC
9090 dSINGLE
9191 "$<$<CONFIG:Release,ReleaseMasterGold>:dNODEBUG>"
92+ PRIVATE
93+ $<$<BOOL :${BUILD_SHARED_LIBS} >:ODE_DLL>
94+ $<$<BOOL :${BUILD_SHARED_LIBS} >:ODE_PLATFORM_WINDOWS>
9295)
9396
9497set_target_properties (xrODE PROPERTIES
@@ -97,7 +100,10 @@ set_target_properties(xrODE PROPERTIES
97100)
98101
99102if (MSVC AND BUILD_SHARED_LIBS )
100- set_target_properties (xrODE PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
103+ set_target_properties (xrODE PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS OFF )
104+ # Provide explicit export list and disable IPO to keep /DEF helper stable.
105+ target_link_options (xrODE PRIVATE "/DEF:${CMAKE_CURRENT_SOURCE_DIR} /config/msvcdefs.def" )
106+ set_property (TARGET xrODE PROPERTY INTERPROCEDURAL_OPTIMIZATION OFF )
101107endif ()
102108
103109if (BUILD_SHARED_LIBS )
Original file line number Diff line number Diff line change 1- add_compile_definitions (
2- $<$<CONFIG:ReleaseMasterGold>:MASTER_GOLD>
3- $<$<NOT :$<BOOL :${BUILD_SHARED_LIBS} >>:XRAY_STATIC_BUILD>
4- )
5-
61add_compile_options (${XRAY_ENABLE_WARNINGS} )
72
83add_subdirectory (utils)
You can’t perform that action at this time.
0 commit comments