Browse Source

FetchContent: Support use of the module before "project()" command

Co-authored-by: Craig Scott <craig.scott@crascit.com>
Co-authored-by: Brad King <brad.king@kitware.com>
pull/315/head
Jean-Christophe Fillion-Robin 8 years ago
parent
commit
b551beb6fa
No known key found for this signature in database GPG Key ID: A50C0312039D473C
  1. 4
      Modules/FetchContent.cmake

4
Modules/FetchContent.cmake

@ -754,7 +754,9 @@ function(__FetchContent_directPopulate contentName)
list(APPEND generatorOpts "-T${CMAKE_GENERATOR_TOOLSET}")
endif()
list(APPEND generatorOpts "-DCMAKE_MAKE_PROGRAM:FILE=${CMAKE_MAKE_PROGRAM}")
if(CMAKE_MAKE_PROGRAM)
list(APPEND generatorOpts "-DCMAKE_MAKE_PROGRAM:FILEPATH=${CMAKE_MAKE_PROGRAM}")
endif()
else()
# Likely we've been invoked via CMake's script mode where no

Loading…
Cancel
Save