string(CONCAT result ${var1} "/how")
string(FIND ${var1} "targetPattern" foundResultIndex)
if(${foundResultIndex} GREATER_EQUAL 0 )
endif()
string(LENGTH <string> <output_variable>)
https://cmake.org/cmake/help/latest/command/string.html
标签:foundResultIndex,var1,string,cmake,example,help From: https://www.cnblogs.com/Searchor/p/17285667.html