Lines Matching +full:cmake +full:- +full:version
5 # Licensed under the Apache License, Version 2.0 (the "License");
9 # https://www.apache.org/licenses/LICENSE-2.0
17 # "Unit" and integration tests for Absl CMake installation
19 # TODO(absl-team): This script isn't fully hermetic because
20 # -DABSL_USE_GOOGLETEST_HEAD=ON means that this script isn't pinned to a fixed
21 # version of GoogleTest. This means that an upstream change to GoogleTest could
22 # break this test. Fix this by allowing this script to pin to a known-good
23 # version of GoogleTest.
26 set -euox pipefail
30 if [[ "${#}" -eq 1 ]]; then
31 cmake -DCMAKE_INSTALL_PREFIX="${1}" "${absl_dir}"
33 cmake "${absl_dir}"
35 cmake --build . --target install -- -j
41 rm -rf "${absl_build_dir}"
42 mkdir -p "${absl_build_dir}"
55 absl_dir=/abseil-cpp
56 absl_build_dir=/buildfs/absl-build
57 project_dir="${absl_dir}"/CMake/install_test_project
58 project_build_dir=/buildfs/project-build
60 mkdir -p "${absl_build_dir}"
61 mkdir -p "${project_build_dir}"
68 mkdir -p "${install_dir}"
74 cmake "${project_dir}"
77 cmake "${project_dir}" -DCMAKE_PREFIX_PATH="${install_dir}"
80 cmake --build . --target simple
94 # Starting in CMake 3.12 the default install dir is lib$bit_width
95 if [[ -d lib64 ]]; then
97 elif [[ -d lib ]]; then
115 if ! grep absl::strings "${libdir}/cmake/${absl_subdir}/abslTargets.cmake"; then
116 cat "${libdir}"/cmake/absl/abslTargets.cmake
117 echo "CMake targets named incorrectly"