[cmake-developers] CMake string question

Joachim Wuttke j.wuttke at fz-juelich.de
Fri Nov 9 08:55:27 EST 2018


>> if("${srcdir}" STREQUAL "${bindir}")
> 
> if(srcdir STREQUAL bindir)

looks more idiomatic, thank you Eike -

But can we be sure that srcdir contains no blank?
Or does STREQUAL work even for argument strings
that contain blanks?

- Joachim

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5110 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://cmake.org/pipermail/cmake-developers/attachments/20181109/344eb4eb/attachment.bin>


More information about the cmake-developers mailing list