Fix for 64-bit build compatibility 21/37321/1 tizen_3.0.2015.q2_common accepted/tizen/common/20150408.103040 accepted/tizen/mobile/20150403.075013 accepted/tizen/wearable/20150402.065334 submit/tizen_common/20150406.051135 submit/tizen_mobile/20150326.074553 submit/tizen_mobile/20150326.075016 submit/tizen_mobile/20150402.005016 submit/tizen_tv/20150401.081735 submit/tizen_wearable/20150401.070435
authorJiwan Kim <ji-wan.kim@samsung.com>
Tue, 24 Mar 2015 11:29:57 +0000 (20:29 +0900)
committerJiwan Kim <ji-wan.kim@samsung.com>
Tue, 24 Mar 2015 11:29:57 +0000 (20:29 +0900)
Change-Id: I3252228758161e673cda89a469f49f19e695cac5
Signed-off-by: Jiwan Kim <ji-wan.kim@samsung.com>
CMakeLists.txt
packaging/tel-plugin-atmodem.spec

index 0e47a19..7492dcc 100755 (executable)
@@ -4,7 +4,7 @@ PROJECT(atmodem-plugin C)
 ### Global setting ###
 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 SET(EXEC_PREFIX "\${prefix}")
-SET(LIBDIR "\${prefix}/lib")
+SET(LIBDIR ${LIB_INSTALL_DIR})
 SET(INCLUDEDIR "\${prefix}/include")
 
 # Set required packages
@@ -47,7 +47,7 @@ SET_TARGET_PROPERTIES(atmodem-plugin PROPERTIES PREFIX "" OUTPUT_NAME atmodem-pl
 
 # install
 INSTALL(TARGETS atmodem-plugin
-               LIBRARY DESTINATION lib/telephony/plugins/modems)
+               LIBRARY DESTINATION ${LIBDIR}/telephony/plugins/modems)
 
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/res/wiki_mcc_mnc_oper_list.sql DESTINATION /tmp RENAME mcc_mnc_oper_list.sql)
 INSTALL(FILES ${CMAKE_SOURCE_DIR}/LICENSE DESTINATION /usr/share/license RENAME tel-plugin-atmodem)
index 55a3a02..3352336 100644 (file)
@@ -23,7 +23,8 @@ Telephony AT Modem library
 %setup -q
 
 %build
-cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
+cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
+       -DLIB_INSTALL_DIR=%{_libdir}
 make %{?_smp_mflags}
 
 %post