'How to save CMake output to file?
I can usually save the output of bash commands by >> output_file.txt
But when I execute cmake
the output is still sent to the screen rather than output file as expected:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D \
BUILD_NEW_PYTHON_SUPPORT=ON -D INSTALL_C_EXAMPLES=ON -D \
INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON .. >> output_file.txt
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|