diff --git a/CMakeLists.txt b/CMakeLists.txt index ab9f3af80..2b99a7722 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,14 +17,8 @@ include(GNUInstallDirs) include(CMakePackageConfigHelpers) -if(MSVC AND NOT DEFINED NOFORTRAN) - set(NOFORTRAN ON) -endif() - ####### -if(MSVC) - option(BUILD_WITHOUT_LAPACK "Do not build LAPACK and LAPACKE (Only BLAS or CBLAS)" ON) -endif() +option(BUILD_WITHOUT_LAPACK "Do not build LAPACK and LAPACKE (Only BLAS or CBLAS)" OFF) option(BUILD_WITHOUT_CBLAS "Do not build the C interface (CBLAS) to the BLAS functions" OFF) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 04ed428de..10d639a4a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -65,7 +65,7 @@ jobs: - task: CMake@1 inputs: workingDirectory: 'build' # Optional - cmakeArgs: '-G "Visual Studio 16 2019" ..' + cmakeArgs: '-G "Visual Studio 17 2022" ..' - task: CMake@1 inputs: cmakeArgs: '--build . --config Release' @@ -103,7 +103,7 @@ jobs: - job: Windows_flang_clang pool: - vmImage: 'windows-latest' + vmImage: 'windows-2022' steps: - script: | set "PATH=C:\Miniconda\Scripts;C:\Miniconda\Library\bin;C:\Miniconda\Library\usr\bin;C:\Miniconda\condabin;%PATH%" @@ -114,7 +114,7 @@ jobs: conda install --yes --quiet ninja flang mkdir build cd build - call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" + call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" cmake -G "Ninja" -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DCMAKE_Fortran_COMPILER=flang -DCMAKE_MT=mt -DCMAKE_BUILD_TYPE=Release -DMSVC_STATIC_CRT=ON .. cmake --build . --config Release ctest @@ -178,7 +178,7 @@ jobs: cmake -DTARGET=CORE2 -DDYNAMIC_ARCH=1 -DCMAKE_C_COMPILER=gcc-10 -DCMAKE_Fortran_COMPILER=gfortran-10 -DBUILD_SHARED_LIBS=ON .. cmake --build . ctest - + - job: OSX_Ifort_Clang pool: vmImage: 'macOS-10.15' diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index e4ee8b28b..5214d9cab 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -30,6 +30,10 @@ if(WIN32) FILE(WRITE ${CMAKE_CURRENT_BINARY_DIR}/test_helper.ps1 "if (Test-Path $args[2]) { Remove-Item -Force $args[2] } \n" "$ErrorActionPreference = \"Stop\"\n" +"If ((Get-Content $args[1] | & file - | %{$_ -match \"BOM\"}) -contains $true) {\n" +"echo 'Skipped due to wrong input encoding'\n" +"exit 0\n" +"}\n" "Get-Content $args[1] | & $args[0]\n" "If ((Get-Content $args[2] | %{$_ -match \"FATAL\"}) -contains $true) {\n" "echo Error\n"