[cmake-developers] [CMake 0016137]: ExternalProject_Add: Can't escape ; character in CMAKE_ARGS
Mantis Bug Tracker
mantis at public.kitware.com
Tue Jun 7 09:56:42 EDT 2016
The following issue has been SUBMITTED.
======================================================================
https://public.kitware.com/Bug/view.php?id=16137
======================================================================
Reported By: Andry81
Assigned To:
======================================================================
Project: CMake
Issue ID: 16137
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2016-06-07 09:56 EDT
Last Modified: 2016-06-07 09:56 EDT
======================================================================
Summary: ExternalProject_Add: Can't escape ; character in
CMAKE_ARGS
Description:
Seems ExternalProject_Add became broken from some time ago. I could not figure
out when, but from version 3.5.2 (including 3.5.2-rc1) it does not work anymore.
All ";" characters does replace now by space whenever and not matter how you use
the expression.
Steps to Reproduce:
ExternalProject_Add(MySubProject SOURCE_DIR ${SUBPROJECT_ROOT}
CMAKE_ARGS
-DMYPATH=c:/blabla1;c:/blabla1/blabla2;c:/blabla1/blabla3
INSTALL_COMMAND "" )
Additional Information:
I Tried these to workaround it:
1. Quotes around the expression ("-DMYPATH=...")
2. Backlash escaping ("-DMYPATH=...\;...")
3. LIST APPEND instead SET
4. LIST_SEPARATOR in ExternalProject_Add
5. STRING REPLACE ^^ to ;
Nothing works.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2016-06-07 09:56 Andry81 New Issue
======================================================================
More information about the cmake-developers
mailing list