Skip to content

Commit

Permalink
Build all external projects in the same top-level directory.
Browse files Browse the repository at this point in the history
This reduces path lengths, which is important on Windows as there is a limit on
how long a path can be (#61).
  • Loading branch information
s3rvac committed Dec 25, 2017
1 parent 0f41aa3 commit ecba1a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
option(RETDEC_DOC "Build public API documentation (requires Doxygen)." OFF)
option(RETDEC_TESTS "Build tests." OFF)

# Build all external projects in the same directory that is directly inside the
# build directory. This reduces path lengths, which is important on Windows as
# there is a limit on how long a path can be.
set_directory_properties(PROPERTIES EP_PREFIX "${PROJECT_BINARY_DIR}/external")

set(DEPS_TESTS ${RETDEC_TESTS})
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/deps-config.cmake)

Expand Down

0 comments on commit ecba1a6

Please sign in to comment.