Changeset 195478 in webkit


Ignore:
Timestamp:
Jan 22, 2016, 2:25:02 PM (10 years ago)
Author:
achristensen@apple.com
Message:

Only set CMake output directories if they aren't already set
https://bugs.webkit.org/show_bug.cgi?id=153373

Reviewed by Michael Catanzaro.

  • CMakeLists.txt:

r195242 caused Windows builds to copy files to bin instead of bin64.
CMAKE_RUNTIME_OUTPUT_DIRECTORY is being set in OptionsWin.cmake, and this was now resetting it.
This also makes it so you can set these variables by command line.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CMakeLists.txt

    r195242 r195478  
    113113# Output directories
    114114#------------------------------------------------------------------------------
    115 set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
    116 set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
    117 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
     115if (NOT CMAKE_ARCHIVE_OUTPUT_DIRECTORY)
     116    set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
     117endif ()
     118if (NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
     119    set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
     120endif ()
     121if (NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
     122    set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
     123endif ()
    118124
    119125# -----------------------------------------------------------------------------
  • trunk/ChangeLog

    r195346 r195478  
     12016-01-22  Alex Christensen  <achristensen@webkit.org>
     2
     3        Only set CMake output directories if they aren't already set
     4        https://bugs.webkit.org/show_bug.cgi?id=153373
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        * CMakeLists.txt:
     9        r195242 caused Windows builds to copy files to bin instead of bin64.
     10        CMAKE_RUNTIME_OUTPUT_DIRECTORY is being set in OptionsWin.cmake, and this was now resetting it.
     11        This also makes it so you can set these variables by command line.
     12
    1132016-01-20  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
Note: See TracChangeset for help on using the changeset viewer.