Adding IPO support.
This commit is contained in:
parent
cc623bcdeb
commit
882c48acb9
3 changed files with 18 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue