mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-10-15 18:17:11 +02:00
Experimenting with LTO.
This commit is contained in:
1 parent
4e5aa5a292
commit
5eabcab3a5
13 files changed
+63
-3
No files matched your search
Vendored
+6
-1
@@ -3,4 +3,9 @@ add_library(PUGIXML STATIC include/pugiconfig.hpp include/pugixml.hpp pugixml.cp
|
||||
# Configure include folders
|
||||
target_include_directories(PUGIXML PRIVATE ${CMAKE_CURRENT_LIST_DIR})
|
||||
target_include_directories(PUGIXML PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)
|
||||
|
||||
# Configure macro options
|
||||
target_compile_definitions(PUGIXML PRIVATE PUGIXML_NO_EXCEPTIONS=1)
|
||||
# Enable LTO
|
||||
if (LTO_ENABLED)
|
||||
target_link_libraries(PUGIXML PRIVATE -flto)
|
||||
endif()
|
||||
Reference in new issue
Block a user