Skip to content

Instantly share code, notes, and snippets.

@ruslo
Created December 10, 2015 12:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruslo/e8c7be03521f167ae8f0 to your computer and use it in GitHub Desktop.
Save ruslo/e8c7be03521f167ae8f0 to your computer and use it in GitHub Desktop.
Example of breaking shell operators by `LOG_CONFIGURE 1`
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
)
@vookimedlo
Copy link

Nice, solution. 8 years later and it seems to me this hasn't been addressed in CMake yet.
Thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment