[Development] Build system for Qt 6

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Tue Oct 30 09:42:24 CET 2018


Am 30.10.2018 um 09:21 schrieb resurrection at centrum.cz:
>
> // // set(var1 "Hello")
>
> // // set(var2 "Hello")
>
> // //
>
> // // if(var1 EQUAL var2)
>
> // //  message("They are equal")
>
> // // endif()
>
Using STREQUAL works here for me with cmake 3.12 on linux so if it does 
not work for you please file a bug report in the cmake bugtracker.

set(var1 "Hello")
set(var2 "Hello")
set(var3 "Hello2")
if(var1 STREQUAL var2)
     message("They are equal")
endif()
if(NOT var1 STREQUAL var3)
     message("They are *NOT* equal")
endif()

Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20181030/2078deed/attachment.html>


More information about the Development mailing list