Don't append library suffix to library path and use it by default
authorVeeti Paananen <veeti.paananen@rojekti.fi>
Wed, 12 Feb 2014 08:21:15 +0000 (10:21 +0200)
committerVeeti Paananen <veeti.paananen@rojekti.fi>
Wed, 12 Feb 2014 08:21:40 +0000 (10:21 +0200)
CMakeLists.txt

index 0203a93..5129c28 100644 (file)
@@ -7,7 +7,7 @@ set(LXQT_MINOR_VERSION 5)
 set(LXQT_PATCH_VERSION 0)
 
 # Set default installation paths
-set(LIB_INSTALL_DIR "lib" CACHE PATH "Installation path for libraries")
+set(LIB_INSTALL_DIR "lib${LIB_SUFFIX}" CACHE PATH "Installation path for libraries")
 
 set(PUB_HDRS
     aboutdialog/lxqtaboutdialog.h
@@ -214,7 +214,7 @@ set_target_properties(lxqt PROPERTIES
     SOVERSION ${LXQT_MAJOR_VERSION}
 )
 
-install(TARGETS lxqt DESTINATION ${LIB_INSTALL_DIR}${LIB_SUFFIX})
+install(TARGETS lxqt DESTINATION ${LIB_INSTALL_DIR})
 install(FILES ${PUB_HDRS}  DESTINATION ${LXQT_INCLUDE_DIR})
 install(FILES ${PORTABLE_HEADERS} DESTINATION ${LXQT_INCLUDE_DIR})
 install(FILES ${QM_FILES} DESTINATION ${LXQT_TRANSLATIONS_DIR})