meson: use get_variable() update to meson 0.51
[mesa-waffle.git] / third_party / cmocka / cmocka-config.cmake.in
blob317f0a251e8d61e9b1382a53ca794c3ddcd669da
1 get_filename_component(CMOCKA_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
3 if (EXISTS "${CMOCKA_CMAKE_DIR}/CMakeCache.txt")
4     # In build tree
5     include(${CMOCKA_CMAKE_DIR}/cmocka-build-tree-settings.cmake)
6 else()
7     set(CMOCKA_INCLUDE_DIR @INCLUDE_INSTALL_DIR@)
8 endif()
10 set(CMOCKA_LIBRARY @LIB_INSTALL_DIR@/@CMOCKA_LIBRARY_NAME@)
11 set(CMOCKA_LIBRARIES @LIB_INSTALL_DIR@/@CMOCKA_LIBRARY_NAME@)