Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
TEMP: cmake produce verbose output.
Browse files Browse the repository at this point in the history
  • Loading branch information
busykai committed Nov 20, 2023
1 parent c767fd6 commit c297573
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
- name: macOS Clang
os: macos-latest
compiler: clang
cmake-args: --debug-output

- name: macOS GCC
os: macos-latest
Expand All @@ -72,7 +73,7 @@ jobs:
CFLAGS: ${{ matrix.cflags }}

- name: Compile source code
run: cmake --build ${{ matrix.build-dir || '.' }} --config ${{ matrix.build-config || 'Release' }}
run: VERBOSE=1 cmake --build ${{ matrix.build-dir || '.' }} --config ${{ matrix.build-config || 'Release' }}

- name: Run test cases
run: ctest -C Release --output-on-failure --max-width 120
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ set(ZLIB_SRCS
zutil.c
)

if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang"
OR CMAKE_C_COMPILER_ID STREQUAL "AppleClang")
set_source_files_properties(crc_folding.c PROPERTIES COMPILE_OPTIONS "-mpclmul;-msse4")
set_source_files_properties(slide_sse.c PROPERTIES COMPILE_OPTIONS -msse2)
set_source_files_properties(deflate_quick.c PROPERTIES COMPILE_OPTIONS -msse4)
Expand Down

0 comments on commit c297573

Please sign in to comment.