Merge pull request #435 from Ygrik2003/Refactoring-cmake
Refactoring cmake
This commit is contained in:
@@ -28,9 +28,7 @@ jobs:
|
||||
msystem: clang64
|
||||
install: >-
|
||||
mingw-w64-clang-x86_64-toolchain
|
||||
mingw-w64-clang-x86_64-cmake
|
||||
mingw-w64-clang-x86_64-make
|
||||
mingw-w64-clang-x86_64-luajit
|
||||
mingw-w64-clang-x86_64-cmake
|
||||
git
|
||||
- name: Set up vcpkg
|
||||
shell: msys2 {0}
|
||||
@@ -41,11 +39,12 @@ jobs:
|
||||
./vcpkg integrate install
|
||||
cd ..
|
||||
- name: Configure project with CMake and vcpkg
|
||||
env:
|
||||
VCPKG_DEFAULT_TRIPLET: x64-mingw-static
|
||||
VCPKG_DEFAULT_HOST_TRIPLET: x64-mingw-static
|
||||
shell: msys2 {0}
|
||||
run: |
|
||||
export VCPKG_DEFAULT_TRIPLET=x64-mingw-static
|
||||
export VCPKG_DEFAULT_HOST_TRIPLET=x64-mingw-static
|
||||
export VCPKG_ROOT=./vcpkg
|
||||
export VCPKG_ROOT=$(pwd)/vcpkg
|
||||
mkdir build
|
||||
cd build
|
||||
cmake -G "MinGW Makefiles" -DVCPKG_TARGET_TRIPLET=x64-mingw-static -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake ..
|
||||
|
||||
Reference in New Issue
Block a user