INTERFACE_COMPILE_OPTIONS with spaces generates quotes
Working in OSX, tested with versions cmake 3.2-3.10
I am defining an INTERFACE IMPORTED target that has some INTERFACE_COMPILE_OPTIONS with the form:
-isysroot=somepath;-arch arm64;-someflag;
When this information is used building something that links with this target, the following command line is obtained:
compiler -isysroot=somepath "-arch arm64" -someflag
And the "-arch arm64" argument is dismissed by the compiler with a warning as unrecognized (if this is not quoted, it is recognized and works)
On the other hand, INTERFACE_LINK_LIBRARIES property for the same target, with the same input works fine. But, if I change the flags to:
-isysroot=somepath;-arch;arm64;-someflag;
Then it fails, because it tries to do something like:
linker -isysroot=somepath -arch -larm64 -someflag
And of course the library -larm64 doesn't exist.
Is there some way I could define these properties consistently? Many thanks for the help.