Adding IPO support.
This commit is contained in:
parent
cc623bcdeb
commit
882c48acb9
3 changed files with 18 additions and 1 deletions
|
@ -221,6 +221,8 @@ set(qwt_sources
|
|||
#----------------------------------------------------------------
|
||||
# Target
|
||||
#----------------------------------------------------------------
|
||||
check_ipo_supported(RESULT result OUTPUT output)
|
||||
|
||||
if(QWT_USE_STATIC_LIBS)
|
||||
add_library(qwt STATIC ${qwt_headers} ${qwt_sources})
|
||||
else()
|
||||
|
@ -234,6 +236,13 @@ else()
|
|||
)
|
||||
endif()
|
||||
|
||||
check_ipo_supported(RESULT result OUTPUT output)
|
||||
if(result)
|
||||
set_target_properties(qwt PROPERTIES INTERPROCEDURAL_OPTIMIZATION_RELEASE ON)
|
||||
else()
|
||||
message(WARNING "IPO is not supported: ${output}")
|
||||
endif()
|
||||
|
||||
target_include_directories(qwt
|
||||
PUBLIC
|
||||
${PROJECT_SOURCE_DIR}/include
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue