[cmake-developers] [CMake 0015567]: "LOG_CONFIGURE 1" breaks ExternalProject_Add with empty CONFIGURE_COMMAND

Mantis Bug Tracker mantis at public.kitware.com
Thu May 14 01:47:33 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15567 
====================================================================== 
Reported By:                Ruslan Baratov
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15567
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-05-14 01:47 EDT
Last Modified:              2015-05-14 01:47 EDT
====================================================================== 
Summary:                    "LOG_CONFIGURE 1" breaks ExternalProject_Add with
empty CONFIGURE_COMMAND
Description: 
In case when CONFIGURE_COMMAND of ExternalProject_Add is optional and can be
empty setting LOG_CONFIGURE 1 lead to error:
    
    *-configure.cmake:4 (execute_process):
      execute_process given COMMAND argument with no value.

Steps to Reproduce: 
Works fine:

    cmake_minimum_required(VERSION 3.0)
    project(Foo)

    include(ExternalProject)

    set(configure "")

    ExternalProject_Add(
        Foo
        DOWNLOAD_COMMAND ""
        CONFIGURE_COMMAND ${configure}
        COMMAND "${CMAKE_COMMAND}" -E echo ""
        BUILD_COMMAND ""
        INSTALL_COMMAND ""
    )

Not working:

    cmake_minimum_required(VERSION 3.0)
    project(Foo)

    include(ExternalProject)

    set(configure "")

    ExternalProject_Add(
        Foo
        DOWNLOAD_COMMAND ""
        CONFIGURE_COMMAND ${configure}
        COMMAND "${CMAKE_COMMAND}" -E echo ""
        BUILD_COMMAND ""
        INSTALL_COMMAND ""
        LOG_CONFIGURE 1
    )
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-05-14 01:47 Ruslan Baratov New Issue                                    
======================================================================



More information about the cmake-developers mailing list