cmake string example

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

posted @ 2023-04-04 10:49  fndefbwefsowpvqfx  阅读(18)  评论(0编辑  收藏  举报