[CMake] passing a URL to cmake on the command line

Szilárd Páll sin.pecado at gmail.com
Mon Apr 9 11:24:37 EDT 2018


Hi,

I'm trying to pass a URL (that's used in ExternalProject_Add), and I'm
having trouble convincing bash + cmake to cooperate. No matter what
I've done, one fo the "/" gets dropped from "http://".

Any ideas how can I construct an invocation similar to the one below
that will actually work?

cmake . -DMY_CUSTOM_URL='http://my-server.com/foobar.tar.gz'


Thanks,
--
Szilárd


More information about the CMake mailing list