Skip to content

Commit ce32e0c

Browse files
committed
update github actions & cmake stuffs
1 parent a4769cc commit ce32e0c

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.github/workflows/cmake-build.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,14 @@ jobs:
2121
with:
2222
cmake-version: '3.21.3'
2323

24+
- name: Install LLVM
25+
uses: llvm/setup-llvm@v2
26+
with:
27+
version: '17.0.3'
28+
clang: true
29+
2430
- name: Configure with CMake
25-
run: cmake -S . -B build -G "Visual Studio 17 2022"
31+
run: cmake -S . -B build -G "Ninja" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
2632

27-
- name: Build with MSVC
28-
run: cmake --build build --config Release
33+
- name: Build with Clang
34+
run: cmake --build build --config Release -- -v

CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ if(NOT zlib_POPULATED)
4141
FetchContent_Populate(zlib)
4242
endif()
4343

44-
file(GLOB ZLIB_LIBS "${zlib_BINARY_DIR}/*.lib")
45-
foreach(lib_file ${ZLIB_LIBS})
46-
message(STATUS "Found zlib lib file: ${lib_file}")
47-
endforeach()
48-
4944
set(ZLIB_LIBRARY "${zlib_BINARY_DIR}/zlib.lib")
5045
set(ZLIB_INCLUDE_DIR "${zlib_SOURCE_DIR}")
5146

0 commit comments

Comments
 (0)