File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5757 clang-${{matrix.compiler-version}} \
5858 libclang-${{matrix.libclang-version}}-dev \
5959 libclang-rt-${{matrix.libclang-version}}-dev \
60- llvm-${{matrix.libclang-version}}-dev \
60+ llvm-${{matrix.libclang-version}}-dev
6161 echo "CXX=clang++-${{matrix.compiler-version}}" >> $GITHUB_ENV
6262 echo "CC=clang-${{matrix.compiler-version}}" >> $GITHUB_ENV
6363
6868 g++-${{matrix.compiler-version}} \
6969 libclang-${{matrix.libclang-version}}-dev \
7070 libclang-rt-${{matrix.libclang-version}}-dev \
71- llvm-${{matrix.libclang-version}}-dev \
71+ llvm-${{matrix.libclang-version}}-dev
7272 echo "CXX=g++-${{matrix.compiler-version}}" >> $GITHUB_ENV
7373 echo "CC=gcc-${{matrix.compiler-version}}" >> $GITHUB_ENV
7474
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- cmake_minimum_required (VERSION 3.13..3.26 )
15+ cmake_minimum_required (VERSION 3.25..4.2 )
1616
1717if (POLICY CMP0083)
1818 cmake_policy (SET CMP0083 NEW ) # Add PIE flags when requested
1919endif ()
2020
21- if (POLICY CMP0135 )
22- cmake_policy (SET CMP0135 NEW ) # Set download timestamp to current time
21+ if (POLICY CMP0177 )
22+ cmake_policy (SET CMP0177 NEW ) # Normalize install() paths
2323endif ()
2424
2525project (SandboxedAPI C CXX ASM )
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ function(sapi_check_target target)
1919 endif ()
2020endfunction ()
2121
22- include (SapiFetchContent )
22+ include (FetchContent )
2323
2424# Use static libraries
2525set (_sapi_saved_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES} )
@@ -92,7 +92,7 @@ sapi_check_target(re2)
9292if (SAPI_BUILD_EXAMPLES)
9393 if (SAPI_DOWNLOAD_ZLIB)
9494 include (cmake/zlib.cmake )
95- sapi_check_target (ZLIB::ZLIB )
95+ sapi_check_target (ZLIB::ZLIBSTATIC )
9696 else ()
9797 find_package (ZLIB REQUIRED )
9898 endif ()
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ if(NOT libunwind_POPULATED)
2727 message ("-- Running ./configure for libunwind..." )
2828 execute_process (
2929 COMMAND ./configure --disable-dependency-tracking
30+ --disable-documentation
3031 --disable-minidebuginfo
3132 --disable-shared
3233 --enable-ptrace
Original file line number Diff line number Diff line change @@ -20,4 +20,3 @@ FetchContent_MakeAvailable(zlib)
2020
2121set (ZLIB_FOUND TRUE )
2222set (ZLIB_INCLUDE_DIRS ${zlib_SOURCE_DIR} )
23- add_library (ZLIB::ZLIB ALIAS zlibstatic )
Original file line number Diff line number Diff line change @@ -403,8 +403,8 @@ endforeach()
403403file (GLOB_RECURSE _sapi_headers true ${CMAKE_CURRENT_LIST_DIR} /*.h )
404404list (FILTER _sapi_headers EXCLUDE REGEX /\(tools|examples\)/)
405405foreach (_file ${_sapi_headers} )
406- get_filename_component ( _dir ${ _file} DIRECTORY )
407- string ( REPLACE ${CMAKE_CURRENT_LIST_DIR} "" _dir ${_dir } )
406+ cmake_path ( GET _file PARENT_PATH _dir )
407+ cmake_path ( RELATIVE_PATH _dir BASE_DIRECTORY ${CMAKE_CURRENT_LIST_DIR } )
408408 install (FILES ${_file}
409409 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} /sandboxed_api/${_dir} )
410410endforeach ()
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ add_sapi_library(zlib-sapi
2424)
2525add_library (sapi::zlib_sapi ALIAS zlib-sapi )
2626target_link_libraries (zlib-sapi PRIVATE
27- ZLIB::ZLIB
27+ ZLIB::ZLIBSTATIC
2828)
2929
3030# sandboxed_api/examples/zlib:main_zlib
Original file line number Diff line number Diff line change @@ -45,5 +45,5 @@ set_target_properties(sandbox2_zpipe PROPERTIES OUTPUT_NAME zpipe)
4545add_executable (sandbox2::zpipe ALIAS sandbox2_zpipe )
4646target_link_libraries (sandbox2_zpipe PRIVATE
4747 -static
48- ZLIB::ZLIB
48+ ZLIB::ZLIBSTATIC
4949)
You can’t perform that action at this time.
0 commit comments