findpath: make it more cmake compitable

Otherwise configure() don't want to read values of RESULT variable
properly, always think that we don't have such header.