From: commit-queue@webkit.org Date: Tue, 25 Sep 2012 03:22:13 +0000 (+0000) Subject: [CMake] Change hardcoded 'lib' and 'bin' in CMakeLists.txt to 'LIB_INSTALL_DIR' and... X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=e0b7e4699ebf9b1b252a4d6391bf0f204fbec106 [CMake] Change hardcoded 'lib' and 'bin' in CMakeLists.txt to 'LIB_INSTALL_DIR' and 'EXEC_INSTALL_DIR'. https://bugs.webkit.org/show_bug.cgi?id=97419 Patch by Byungwoo Lee on 2012-09-24 Reviewed by Gyuyoung Kim. Use the value of LIB_INSTALL_DIR and EXEC_INSTALL_DIR instead of hardcoding 'lib' and 'bin' for CMAKE_{ARCHIVE,LIBRARY,RUNTIME}_OUTPUT_DIRECTORY. * CMakeLists.txt: Use ${LIB_INSTALL_DIR} instead of hardcoding "lib". Use ${EXEC_INSTALL_DIR} instead of hardcoding "bin". git-svn-id: https://svn.webkit.org/repository/webkit/trunk@129447 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 5ff4edc493ee..a91f25599b09 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,10 +36,6 @@ SET(DERIVED_SOURCES_WEBKIT2_DIR "${CMAKE_BINARY_DIR}/DerivedSources/WebKit2") SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/Source/cmake") -SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) -SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) -SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) - INCLUDE(WebKitMacros) INCLUDE(WebKitFS) INCLUDE(WebKitHelpers) @@ -130,10 +126,17 @@ SET(WebKit_LIBRARY_TYPE SHARED) SET(WebKit2_LIBRARY_TYPE SHARED) SET(WebCoreTestSupport_LIBRARY_TYPE STATIC) +# ----------------------------------------------------------------------------- +# Common options +#------------------------------------------------------------------------------ +INCLUDE(OptionsCommon) +SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${LIB_INSTALL_DIR}) +SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${LIB_INSTALL_DIR}) +SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${EXEC_INSTALL_DIR}) + # ----------------------------------------------------------------------------- # Port-specific options # ----------------------------------------------------------------------------- -INCLUDE(OptionsCommon) INCLUDE(Options${PORT}) # ----------------------------------------------------------------------------- diff --git a/ChangeLog b/ChangeLog index 55245e6c0c3b..c47f1f546bcd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2012-09-24 Byungwoo Lee + + [CMake] Change hardcoded 'lib' and 'bin' in CMakeLists.txt to 'LIB_INSTALL_DIR' and 'EXEC_INSTALL_DIR'. + https://bugs.webkit.org/show_bug.cgi?id=97419 + + Reviewed by Gyuyoung Kim. + + Use the value of LIB_INSTALL_DIR and EXEC_INSTALL_DIR instead of + hardcoding 'lib' and 'bin' for CMAKE_{ARCHIVE,LIBRARY,RUNTIME}_OUTPUT_DIRECTORY. + + * CMakeLists.txt: + Use ${LIB_INSTALL_DIR} instead of hardcoding "lib". + Use ${EXEC_INSTALL_DIR} instead of hardcoding "bin". + 2012-09-24 Sheriff Bot Unreviewed, rolling out r129343.