mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
CI: Removes CMakeCache.txt between builds.
If the cache file is not removed, CMake will not reset configurations back to their default values. In order to make the tests independent, it is simplest to purge the cache. Unfortunatly, this will slow down the tests a little and repeat some checks.
This commit is contained in:
parent
2cb6028fc3
commit
8be5cc3b13
1 changed files with 2 additions and 0 deletions
|
@ -218,6 +218,8 @@ then
|
||||||
# CMake disables the shared library by default.
|
# CMake disables the shared library by default.
|
||||||
add_extra_option "$SHARED" "-DBUILD_SHARED_LIBS=ON" ""
|
add_extra_option "$SHARED" "-DBUILD_SHARED_LIBS=ON" ""
|
||||||
|
|
||||||
|
# Remove old cache file to clear previous settings.
|
||||||
|
rm -f "CMakeCache.txt"
|
||||||
cmake "$SRC_DIR/CMakeLists.txt" -B "$DEST_DIR" $EXTRA_OPTIONS -DADDITIONAL_CHECK_TYPES="$CHECK_TYPE"
|
cmake "$SRC_DIR/CMakeLists.txt" -B "$DEST_DIR" $EXTRA_OPTIONS -DADDITIONAL_CHECK_TYPES="$CHECK_TYPE"
|
||||||
make
|
make
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue