Skip to content

Commit

Permalink
Do not show full file paths in diagnostics when building on AppVeyor CI
Browse files Browse the repository at this point in the history
(the used logger gets confused by those)
  • Loading branch information
hkaiser committed Jul 5, 2017
1 parent 7bfaa3f commit e6fb5d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Expand Up @@ -1280,8 +1280,11 @@ endif()

# Diagnostics
if(MSVC)
# Display full paths in diagnostics
hpx_add_compile_flag(-FC LANGUAGES C CXX)
# Display full paths in diagnostics, except if build is run under APPVEYOR
# as the logger used there gets confused by the full file names.
if(NOT HPX_WITH_APPVEYOR)
hpx_add_compile_flag(-FC LANGUAGES C CXX)
endif()
else()
# Show the flags that toggle each warning
hpx_add_compile_flag_if_available(-fdiagnostics-show-option LANGUAGES CXX C Fortran)
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Expand Up @@ -25,7 +25,7 @@ install:
- cmd: 7z x "C:\projects\vcpkg-export-hpx-dependencies.7z" -y -oC:\projects\vcpkg >NUL

before_build:
- cmd: cmake -H. -Bbuild -A%PLATFORM% -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DCMAKE_TOOLCHAIN_FILE=C:/projects/vcpkg/scripts/buildsystems/vcpkg.cmake -DHPX_WITH_GIT_COMMIT=%APPVEYOR_REPO_COMMIT% -DHPX_WITH_PSEUDO_DEPENDENCIES=On -DHPX_WITH_EXAMPLES=On -DHPX_WITH_TESTS=On -DHPX_WITH_RUNTIME=Off
- cmd: cmake -H. -Bbuild -A%PLATFORM% -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DCMAKE_TOOLCHAIN_FILE=C:/projects/vcpkg/scripts/buildsystems/vcpkg.cmake -DHPX_WITH_GIT_COMMIT=%APPVEYOR_REPO_COMMIT% -DHPX_WITH_PSEUDO_DEPENDENCIES=On -DHPX_WITH_APPVEYOR=On -DHPX_WITH_EXAMPLES=On -DHPX_WITH_TESTS=On -DHPX_WITH_RUNTIME=Off

build_script:
- cmd: cmake --build build --config %CONFIGURATION% --target core -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /verbosity:minimal /maxcpucount:2 /nologo
Expand Down

0 comments on commit e6fb5d9

Please sign in to comment.