ExternalProject_Add adding quotes on BUILD_COMMAND args
Hi, I have the following configuration
ExternalProject_Add(BOOST
SOURCE_DIR "${BOOST_SRC}"
CONFIGURE_COMMAND ${BOOST_BOOTSTRAP}
BUILD_COMMAND ${BOOST_B2} cxxflags="arg1 arg2"
INSTALL_COMMAND ""
)
Because of the quotes and space (I believe thats the winning combination), I end up getting
boost\b2 "cxxflags=\"arg1 arg2\""
as a generated command.
Unfortunately, b2 needs cxxflags="... ..." and I haven't been able to get cmake to generate this correctly.
I tested on latest Windows cmake 3.12.1, generating for VisualStudio 2017. Normally I use cmake 3.8.2, which has the same results. Is there any way to correctly do this? Thanks.