Commit 4a64e0ab authored by Ghislain MARY's avatar Ghislain MARY

Fix test of library existence before creating dummy library.

parent 105560dd
......@@ -31,7 +31,8 @@ foreach(LIB ${LINPHONE_BUILDER_DUMMY_LIBRARIES})
if(${LIB} MATCHES "^libms")
set(_dest "lib/mediastreamer/plugins")
endif()
if(NOT EXISTS "${CMAKE_INSTALL_PREFIX}/${_dest}/${NOPREFIX_LIB}")
if(NOT EXISTS "${CMAKE_INSTALL_PREFIX}/${_dest}/${LIB}${CMAKE_STATIC_LIBRARY_SUFFIX}")
message(STATUS "Generating dummy library ${LIB}${CMAKE_STATIC_LIBRARY_SUFFIX}")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/dummy.c.in" "${CMAKE_CURRENT_BINARY_DIR}/${LIB}.c" @ONLY)
add_library(${NOPREFIX_LIB} STATIC "${CMAKE_CURRENT_BINARY_DIR}/${LIB}.c")
install(TARGETS ${NOPREFIX_LIB}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment