Skip to content

Commit d9ab2e5

Browse files
committed
CI/CMake: Switch to unix folder layout by default
1 parent 81b0df6 commit d9ab2e5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.appveyor.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
version: 1.13.{build}
23
pull_requests:
34
do_not_increment_build_number: true
@@ -9,17 +10,16 @@ environment:
910
ARCH: x86
1011
install:
1112
- cmd: appveyor DownloadFile https://github.com/ninja-build/ninja/releases/download/v1.9.0/ninja-win.zip -FileName ninja.zip
12-
- cmd: 7z x ninja.zip -oC:\projects\deps\ninja > nul
13-
- cmd: set PATH=C:\projects\deps\ninja;%PATH%
13+
- cmd: 7z x ninja.zip
14+
- cmd: set PATH=%cd%;%PATH%
1415
- cmd: ninja --version
1516
build_script:
1617
- cmd: call "C:\Program Files (x86)\Microsoft Visual Studio %VCVER%\VC\vcvarsall.bat" %ARCH%
17-
- mkdir build
18+
- cmd: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release %CMakeArgs%
19+
- sh: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release ${CMakeArgs}
1820
- cd build
19-
- cmd: cmake -G Ninja -DCMAKE_BUILD_TYPE=Release %CMakeArgs% ..
20-
- sh: cmake -DCMAKE_BUILD_TYPE=Release ${CMakeArgs} ..
2121
- cmake --build . --config Release --target install
22-
- cpack
22+
- cpack -C Release
2323
artifacts:
2424
- path: 'build/*.7z'
2525
deploy:

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1010
if(NOT CMAKE_DEBUG_POSTFIX)
1111
set(CMAKE_DEBUG_POSTFIX -debug)
1212
endif()
13-
option(LSL_UNIXFOLDERS "Use the unix folder layout for install targets" Off)
13+
option(LSL_UNIXFOLDERS "Use the unix folder layout for install targets" On)
1414
option(LSL_NO_FANCY_LIBNAME "Skip library name decorations (32/64/-debug)")
1515
option(LSL_LEGACY_CPP_ABI "Build legacy C++ ABI" OFF)
1616

ci/azure_build_steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ steps:
99
cmakeArgs: '--version'
1010
- task: CMake@1
1111
inputs:
12-
cmakeArgs: '-DLSL_UNITTESTS=1 -DLSL_UNIXFOLDERS=1 ${{ parameters.cmake_stepvars }} $(cmakeargs) ..'
12+
cmakeArgs: '-DLSL_UNITTESTS=1 ${{ parameters.cmake_stepvars }} $(cmakeargs) ..'
1313
displayName: 'Configure build'
1414
- task: CMake@1
1515
inputs:

0 commit comments

Comments
 (0)