Edit

kc3-lang/libevent/cmake/LibeventConfigVersion.cmake.in

Branch :

  • Show log

    Commit

  • Author : Joakim Soderberg
    Date : 2014-01-09 13:44:38
    Hash : f3446ed5
    Message : Add CMake config and install targets. Make it easier for other projects to do find_package by creating config files both in the build and install tree.

  • cmake/LibeventConfigVersion.cmake.in
  • set(PACKAGE_VERSION "@EVENT_PACKAGE_VERSION@")
    
    # Check whether the requested PACKAGE_FIND_VERSION is compatible
    if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
      set(PACKAGE_VERSION_COMPATIBLE FALSE)
    else()
      set(PACKAGE_VERSION_COMPATIBLE TRUE)
      if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
        set(PACKAGE_VERSION_EXACT TRUE)
      endif()
    endif()