[CMake] ExternalProject building stage output problem

Alexander Tumin iamtakingiteasy at eientei.org
Thu Jun 6 09:53:31 EDT 2013


Hello!

Having a following CMakeLists.txt:

--->8---
cmake_minimum_required(VERSION 2.8)
project(kyotocabinet)

include(ExternalProject)

ExternalProject_Add(kyotocabinet
   URL "http://fallabs.com/kyotocabinet/pkg/kyotocabinet-1.2.76.tar.gz"
#  URL "/usr/portage/distfiles/kyotocabinet-1.2.76.tar.gz"
   STEP_TARGETS configure build
   BUILD_IN_SOURCE 1
   LOG_BUILD 1
   CONFIGURE_COMMAND ./configure
   BUILD_COMMAND make V=1 libkyotocabinet.a libkyotocabinet.so
   INSTALL_COMMAND true
)
--->8---

I am experiencing some problems during build stage (`make` invocation).
* Output from `make` invocation is not prompted when invoked by 
CMakeLists.txt above.
* Output from downloading and `./configure` invocation is prompted.
* When invoked manually (without cmake), `make V=1 ...` is prompting 
output.

So my question is: Why when used within cmake, `make` invocation
(and thus, building stage of ExternalProject)
Does not produce any output?
How to fix this?


More information about the CMake mailing list