[CMake] ExternalProject_Add() setting build command to run external project's makefile

2019-05-31 Thread David Starkweather
Hello First off, much thanks to all the contributors of cmake. A truly invaluable build utility. Your efforts are greatly appreciated. I've been successfully using cmake to build an external project (the client library for redis, hiredis) that has already been downloaded. I was able to do this wit

[CMake] ExternalProject_Add() Trouble Invoking Build Command to run the projects makefile

2019-05-31 Thread David Starkweather
set(HIREDIS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/hiredis) set(HIREDIS_INCLUDE_DIRS ${HIREDIS_DIR}/include) ExternalProject_Add(hiredis URL https://github.com/redis/hiredis/archive/v0.9.0.tar.gz PREFIX ${CMAKE_CURRENT_BINARY_DIR}/hiredis SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/hiredis DOWNLOAD_DIR