Do not install in /usr/local 79/8579/1
authorAnas Nashif <anas.nashif@intel.com>
Sat, 24 Aug 2013 14:14:43 +0000 (10:14 -0400)
committerAnas Nashif <anas.nashif@intel.com>
Sat, 24 Aug 2013 14:14:51 +0000 (10:14 -0400)
We should never install anything into /usr/local, this is reserved for
the user of the system. System binaries need to be installed under /usr
per the FHS.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
CMakeLists.txt

index 14f2635..548d4a3 100644 (file)
@@ -30,7 +30,6 @@ SET(PACKAGE ${PROJECT_NAME})
 SET(PKGNAME "com.${VENDOR}.${PACKAGE}")
 SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 SET(BINDIR "${PREFIX}/bin")
-SET(LOCALBINDIR "${PREFIX}/local/bin")
 SET(DATADIR "${PREFIX}/share")
 SET(EXEC_PREFIX "\${prefix}")
 SET(INCLUDEDIR "\${prefix}/include")
@@ -95,7 +94,7 @@ INSTALL(TARGETS media-thumbnail-server DESTINATION ${BINDIR})
 
 ADD_EXECUTABLE(test-thumb ${TEST-THUMB})
 TARGET_LINK_LIBRARIES(test-thumb ${pkgs_LDFLAGS} ${MEDIATHUMB-LIB} )
-INSTALL(TARGETS test-thumb DESTINATION ${LOCALBINDIR})
+INSTALL(TARGETS test-thumb DESTINATION ${BINDIR})
 
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/media-thumbnail.h DESTINATION include/${MEDIATHUMB-LIB})
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/media-thumbnail-private.h DESTINATION include/${MEDIATHUMB-LIB})