build BUGFIX another use of newer cmake statements
build BUGFIX another use of newer cmake statements

Fixes #1582

CESNET/libyang,sartura/libyang,sartura/libyang,sartura/libyang,CESNET/libyang,sartura/libyang,sartura/libyang,sartura/libyang