freerdp: fix monolithic build with Intel IPP linking
This commit is contained in:
parent
e8c5e6c70b
commit
cd8091a315
@ -22,6 +22,15 @@ if(MONOLITHIC_BUILD)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
endif()
|
||||
|
||||
# Create imported targets for Intel IPP libraries
|
||||
|
||||
if(IPP_FOUND)
|
||||
foreach(ipp_lib ${IPP_LIBRARIES})
|
||||
add_library("${ipp_lib}_imported" STATIC IMPORTED)
|
||||
set_property(TARGET "${ipp_lib}_imported" PROPERTY IMPORTED_LOCATION "${IPP_LIBRARY_DIRS}/${ipp_lib}")
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
set(${MODULE_PREFIX}_SUBMODULES
|
||||
utils
|
||||
common
|
||||
|
@ -76,8 +76,6 @@ set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVER
|
||||
if(IPP_FOUND)
|
||||
include_directories(${IPP_INCLUDE_DIRS})
|
||||
foreach(ipp_lib ${IPP_LIBRARIES})
|
||||
add_library("${ipp_lib}_imported" STATIC IMPORTED)
|
||||
set_property(TARGET "${ipp_lib}_imported" PROPERTY IMPORTED_LOCATION "${IPP_LIBRARY_DIRS}/${ipp_lib}")
|
||||
set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} "${ipp_lib}_imported")
|
||||
endforeach()
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user