Skip to content

Commit b2c80eb

Browse files
Fix misplaced CMAKE option
1 parent 1286805 commit b2c80eb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/cmake_ubuntu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ jobs:
4444
- name: Configure CMake
4545
shell: bash
4646
working-directory: ${{github.workspace}}/build
47-
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
47+
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DBUILD_TESTING=ON
4848

4949
- name: Build
5050
shell: bash
5151
working-directory: ${{github.workspace}}/build
52-
run: cmake --build . --config ${{env.BUILD_TYPE}} -DBUILD_TESTING=ON
52+
run: cmake --build . --config ${{env.BUILD_TYPE}}
5353

5454
- name: run test (Linux)
5555
working-directory: ${{github.workspace}}/build

.github/workflows/cmake_windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ jobs:
3939
- name: Configure CMake
4040
shell: bash
4141
working-directory: ${{github.workspace}}/build
42-
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake
42+
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DBUILD_TESTING=ON
4343

4444
- name: Build
4545
working-directory: ${{github.workspace}}/build
4646
shell: bash
47-
run: cmake --build . --config ${{env.BUILD_TYPE}} -DBUILD_TESTING=ON
47+
run: cmake --build . --config ${{env.BUILD_TYPE}}
4848

4949
- name: run test (Windows)
5050
working-directory: ${{github.workspace}}/build

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ test = "PATH=\"$PATH;build/Release\" build/tests/Release/behaviortree_cpp_test.e
1313
test = "./build/tests/behaviortree_cpp_test"
1414

1515
[tasks]
16-
build = "mkdir -p build && cd build && cmake ../ -DCMAKE_BUILD_TYPE=Release && cmake --build . --parallel --config Release --DBUILD_TESTING=ON"
16+
build = "mkdir -p build && cd build && cmake ../ -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=ON && cmake --build . --parallel --config Release"
1717

1818
[dependencies]
1919
cmake = ">=3.16.3"

0 commit comments

Comments
 (0)