Adding IPO support.

This commit is contained in:
Pcornat 2025-03-08 13:38:47 +01:00
parent cc623bcdeb
commit 882c48acb9
Signed by: Pcornat
GPG key ID: E0326CC678A00BDD
3 changed files with 18 additions and 1 deletions

View file

@ -20,6 +20,12 @@ set(qwt_mathml_sources
# Target
#----------------------------------------------------------------
add_library(qwt_mathml SHARED ${qwt_mathml_headers} ${qwt_mathml_sources})
check_ipo_supported(RESULT result OUTPUT output)
if(result)
set_target_properties(qwt_mathml PROPERTIES INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
else()
message(WARNING "IPO is not supported: ${output}")
endif()
target_include_directories(qwt_mathml
PUBLIC