Skip to content

Commit

Permalink
Remove build directory entirely before new configuration build
Browse files Browse the repository at this point in the history
If old build directory exists, CMake finds <package>-config.cmake from
old build directory. It's incompatible with new configuration.
  • Loading branch information
kou authored and wesm committed Feb 19, 2019
1 parent 9516d2f commit ca0f67c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions ci/appveyor-cpp-build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ if "%JOB%" == "Static_Crt_Build" (
cmake --build . --config Debug || exit /B
ctest --output-on-failure -j2 || exit /B
popd
rmdir /S /Q cpp\build-debug

mkdir cpp\build-release
pushd cpp\build-release
Expand Down
1 change: 0 additions & 1 deletion cpp/cmake_modules/FindGFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ if(GFLAGS_FOUND)
unset(_GFLAGS_TARGET_CONFIG)
return()
endif()
set(GFLAGS_FOUND FALSE)

pkg_check_modules(GFLAGS gflags)
if(GFLAGS_FOUND)
Expand Down

0 comments on commit ca0f67c

Please sign in to comment.