mirror of
https://github.com/reactos/CMake.git
synced 2025-02-23 13:32:49 +00:00

Add a new SOURCE_SUBDIR option to ExternalProject_Add that allows specifying the location of the CMakeLists.txt to use as the project root relative to the SOURCE_DIR. This is helpful for projects that have unusual layouts, or projects that provide both a superbuild and project-only build depending on which CMakeLists.txt is used. Fixes: #15118
11 lines
278 B
CMake
11 lines
278 B
CMake
cmake_minimum_required(VERSION 3.6)
|
|
project(ExternalProjectSourceSubdir NONE)
|
|
include(ExternalProject)
|
|
|
|
ExternalProject_Add(Example
|
|
SOURCE_SUBDIR subdir
|
|
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Example
|
|
BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/Example
|
|
INSTALL_COMMAND ""
|
|
)
|