CPM.cmake icon indicating copy to clipboard operation
CPM.cmake copied to clipboard

Multiple option values appear to be impossible

Open rokups opened this issue 11 months ago • 2 comments

Please correct me if i am wrong, but it seems like OPTIONS is designed only for a simple KEY=VALUE case. Some cases require KEY=VALUE1;VALUE2;... configuration which is currently not possible. Is it possible to support such a usecase?

rokups avatar Dec 31 '24 15:12 rokups

You can achieve this with some unconventional escaping :D

OPTIONS "BOOST_INCLUDE_LIBRARIES algorithm\\\;asio"

Avus-c avatar Jan 01 '25 13:01 Avus-c

oh, perfect then! This should be documented in a very visible place 🙂

rokups avatar Jan 01 '25 14:01 rokups