Cmake compatibility.