1

So, if I'm running cmake from the command line...

cmake .. "-DCMAKE_PREFIX_PATH=path1;path2"

This works fine. But if I try to do the same thing from a cmake-based ExternalProject...

ExternalProject_Add(
    epname
    URL https://some.url
    CMAKE_ARGS "-DCMAKE_PREFIX_PATH=path1;path2"
)

Then this does not work. The CMakeCache generated only has path1 but not path2. Does anyone know how to fix this?

einpoklum
  • 118,144
  • 57
  • 340
  • 684
Jeff M
  • 2,492
  • 3
  • 22
  • 38

1 Answers1

1

I tried $<SEMICOLON> and that did the trick.

Jeff M
  • 2,492
  • 3
  • 22
  • 38