Fix build under 64-bit architecture 47/36447/3
authorJiyoung Yun <jy910.yun@samsung.com>
Fri, 6 Mar 2015 10:27:11 +0000 (19:27 +0900)
committerJiyoung Yun <jy910.yun@samsung.com>
Fri, 13 Mar 2015 03:46:46 +0000 (12:46 +0900)
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: Ice5bb4559b6c97e50b86753d5562f1f09bd79dad

CMakeLists.txt
packaging/device-manager-plugin-odroid.spec

index 822888f..264036c 100644 (file)
@@ -5,12 +5,11 @@ set(SRCS
   src/device_manager_plugin_odroid.c
   src/device_manager_io.c)
 
-add_library(${PROJECT_NAME} SHARED ${SRCS})
-
 include(FindPkgConfig)
-
 pkg_check_modules(pkgs REQUIRED devman_plugin)
+
 include_directories(${pkgs_INCLUDE_DIRS})
-target_link_libraries(${PROJECT_NAME} ${pkgs_LIBRARIES})
 
-install(TARGETS ${PROJECT_NAME} DESTINATION lib COMPONENT RuntimeLibraries)
\ No newline at end of file
+add_library(${PROJECT_NAME} SHARED ${SRCS})
+target_link_libraries(${PROJECT_NAME} ${pkgs_LIBRARIES})
+install(TARGETS ${PROJECT_NAME} DESTINATION ${LIB_INSTALL_DIR} COMPONENT RuntimeLibraries)
index e32f712..b824f1e 100644 (file)
@@ -15,7 +15,7 @@ Tizen OEM Adaptation Layer library for ODROID development board.
 %setup -q
 
 %build
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+%cmake .
 make %{?jobs:-j%jobs}
 
 %install