Re: [CMake] Build a program and get its output during "cmake" run

2016-06-07 Thread Yaron Cohen-Tal
rg/cmake/help/latest/command/try_run.html > > Petr > > On 7 June 2016 at 09:15, Yaron Cohen-Tal <yaro...@gmail.com> wrote: > >> Hi, >> >> I'd like to build a C++ program and get its output during "cmake" run, >> not during the project build.

Re: [CMake] Build a program and get its output during "cmake" run

2016-06-07 Thread Petr Kmoch
Hi Yaron, I believe you're looking for CMake's try_run() command: https://cmake.org/cmake/help/latest/command/try_run.html Petr On 7 June 2016 at 09:15, Yaron Cohen-Tal <yaro...@gmail.com> wrote: > Hi, > > I'd like to build a C++ program and get its output during "cmak

[CMake] Build a program and get its output during "cmake" run

2016-06-07 Thread Yaron Cohen-Tal
Hi, I'd like to build a C++ program and get its output during "cmake" run, not during the project build. "CHECK_CXX_SOURCE_RUNS" only gives me the exit code, but I need the output from the program. Anyway to do it? Thanx, Yaron -- Powered by www.kitware.com Please ke