Created
December 10, 2015 12:17
-
-
Save ruslo/e8c7be03521f167ae8f0 to your computer and use it in GitHub Desktop.
Example of breaking shell operators by `LOG_CONFIGURE 1`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.0) | |
project(Foo) | |
include(ExternalProject) | |
ExternalProject_Add( | |
Foo | |
DOWNLOAD_COMMAND "" | |
CONFIGURE_COMMAND "${CMAKE_COMMAND}" -E echo "cd .." > configure.sh | |
COMMAND sh configure.sh | |
BUILD_COMMAND "" | |
INSTALL_COMMAND "" | |
LOG_CONFIGURE 1 | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice, solution. 8 years later and it seems to me this hasn't been addressed in CMake yet.
Thanks!!!