Am 30.10.2018 um 09:21 schrieb resurrect...@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
_______________________________________________
Development mailing list
Development@qt-project.org
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to