Cmake gives configuration error on LibIntl_LIBRARY

Trying to run cmake on Ubuntu, but got an error as titled. Wonder if anyone knows what could be the issue ? I have already installed gettext, but it still doesn’t seem to be able to find the dependency.

PS: I also had to make a few changes like the following to run cmake.

find_path(LIBLUV_INCLUDE_DIR luv/luv.h

  •      PATHS ${PC_LIBLUV_INCLUDEDIR} ${PC_LIBLUV_INCLUDE_DIRS})
    
  •      PATHS ${PC_LIBLUV_INCLUDEDIR} ${PC_LIBLUV_INCLUDE_DIRS} NO_CMAKE_FIND_ROOT_PATH)
    

Basically NO_CMAKE_FIND_ROOT_PATH to find_path.