Fix the build scripts to be sure that each dummy uses its own pkg check parameter 45/116945/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Thu, 2 Mar 2017 06:06:00 +0000 (15:06 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Thu, 2 Mar 2017 06:06:00 +0000 (15:06 +0900)
Change-Id: I323f97c05a5204ba1b924bd017595eac370c6a31
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/client-dummy/CMakeLists.txt
src/server-dummy/CMakeLists.txt

index f293fd7..f247700 100644 (file)
@@ -6,14 +6,14 @@ FILE(GLOB_RECURSE SRCS *.cpp)
 MESSAGE("Sources: ${SRCS}")
 
 INCLUDE(FindPkgConfig)
-pkg_check_modules(PKG_CLIENT REQUIRED ${DEPS})
+pkg_check_modules(PKG_CLIENT_DUMMY REQUIRED ${DEPS})
 
-FOREACH(flag ${PKG_CLIENT_CFLAGS})
+FOREACH(flag ${PKG_CLIENT_DUMMY_CFLAGS})
    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}")
 ENDFOREACH(flag)
 
 ADD_LIBRARY(${target} SHARED ${SRCS})
-TARGET_LINK_LIBRARIES(${target} ${PKG_CLIENT_LDFLAGS})
+TARGET_LINK_LIBRARIES(${target} ${PKG_CLIENT_DUMMY_LDFLAGS})
 SET_TARGET_PROPERTIES(${target} PROPERTIES SOVERSION ${MAJORVER})
 SET_TARGET_PROPERTIES(${target} PROPERTIES VERSION ${FULLVER})
 
index 211ad0e..d5a3a4d 100644 (file)
@@ -6,14 +6,14 @@ FILE(GLOB_RECURSE SRCS *.cpp)
 MESSAGE("Sources: ${SRCS}")
 
 INCLUDE(FindPkgConfig)
-pkg_check_modules(PKG_SERVER REQUIRED ${DEPS})
+pkg_check_modules(PKG_SERVER_DUMMY REQUIRED ${DEPS})
 
-FOREACH(flag ${PKG_SERVER_CFLAGS})
+FOREACH(flag ${PKG_SERVER_DUMMY_CFLAGS})
    SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${flag}")
 ENDFOREACH(flag)
 
 ADD_LIBRARY(${target} SHARED ${SRCS})
-TARGET_LINK_LIBRARIES(${target} ${PKG_SERVER_LDFLAGS})
+TARGET_LINK_LIBRARIES(${target} ${PKG_SERVER_DUMMY_LDFLAGS})
 SET_TARGET_PROPERTIES(${target} PROPERTIES SOVERSION ${MAJORVER})
 SET_TARGET_PROPERTIES(${target} PROPERTIES VERSION ${FULLVER})