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

Commit c297573

Browse files
committed
TEMP: cmake produce verbose output.
1 parent c767fd6 commit c297573

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/cmake.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
- name: macOS Clang
5252
os: macos-latest
5353
compiler: clang
54+
cmake-args: --debug-output
5455

5556
- name: macOS GCC
5657
os: macos-latest
@@ -72,7 +73,7 @@ jobs:
7273
CFLAGS: ${{ matrix.cflags }}
7374

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

7778
- name: Run test cases
7879
run: ctest -C Release --output-on-failure --max-width 120

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ set(ZLIB_SRCS
127127
zutil.c
128128
)
129129

130-
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
130+
if (CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang"
131+
OR CMAKE_C_COMPILER_ID STREQUAL "AppleClang")
131132
set_source_files_properties(crc_folding.c PROPERTIES COMPILE_OPTIONS "-mpclmul;-msse4")
132133
set_source_files_properties(slide_sse.c PROPERTIES COMPILE_OPTIONS -msse2)
133134
set_source_files_properties(deflate_quick.c PROPERTIES COMPILE_OPTIONS -msse4)

0 commit comments

Comments
 (0)