ExternalProject: Add SOURCE_SUBDIR option

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
This commit is contained in:
Matthew Woehlke
2016-08-15 14:42:22 -04:00
committed by Brad King
parent f59513140b
commit a8345d65f3
4 changed files with 47 additions and 5 deletions

View File

@@ -0,0 +1,2 @@
cmake_minimum_required(VERSION 3.0)
project(empty)