freerdp: fix monolithic build with Intel IPP linking

This commit is contained in:
Marc-André Moreau 2013-05-16 14:45:49 -04:00
parent e8c5e6c70b
commit cd8091a315
2 changed files with 9 additions and 2 deletions

View File

@ -22,6 +22,15 @@ if(MONOLITHIC_BUILD)
set(CMAKE_POSITION_INDEPENDENT_CODE ON) set(CMAKE_POSITION_INDEPENDENT_CODE ON)
endif() 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 set(${MODULE_PREFIX}_SUBMODULES
utils utils
common common

View File

@ -76,8 +76,6 @@ set_target_properties(${MODULE_NAME} PROPERTIES VERSION ${FREERDP_VERSION} SOVER
if(IPP_FOUND) if(IPP_FOUND)
include_directories(${IPP_INCLUDE_DIRS}) include_directories(${IPP_INCLUDE_DIRS})
foreach(ipp_lib ${IPP_LIBRARIES}) 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") set(${MODULE_PREFIX}_LIBS ${${MODULE_PREFIX}_LIBS} "${ipp_lib}_imported")
endforeach() endforeach()
endif() endif()