File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,15 @@ install:
20
20
- conda config --set always_yes yes --set changeps1 no
21
21
- conda update -q conda
22
22
- conda info -a
23
- - conda install gtest cmake -c conda-forge
23
+ - conda install cmake -c conda-forge
24
24
- conda install xtensor=0.21.4 -c conda-forge
25
25
- conda install m2w64-openblas -c msys2
26
26
# Patch OpenBLASConfig.cmake
27
27
- ps : (Get-Content $Env:MINICONDA\Library\mingw-w64\lib\cmake\openblas\OpenBLASConfig.cmake).replace('mingw64', 'mingw-w64') | Set-Content $Env:MINICONDA\Library\mingw-w64\lib\cmake\openblas\OpenBLASConfig.cmake
28
28
- ps : (Get-Content $Env:MINICONDA\Library\mingw-w64\lib\cmake\openblas\OpenBLASConfig.cmake).replace('mingw32', 'mingw-w64') | Set-Content $Env:MINICONDA\Library\mingw-w64\lib\cmake\openblas\OpenBLASConfig.cmake
29
29
- ps : (Get-Content $Env:MINICONDA\Library\mingw-w64\lib\cmake\openblas\OpenBLASConfig.cmake).replace('bin', 'lib') | Set-Content $Env:MINICONDA\Library\mingw-w64\lib\cmake\openblas\OpenBLASConfig.cmake
30
30
- ps : (Get-Content $Env:MINICONDA\Library\mingw-w64\lib\cmake\openblas\OpenBLASConfig.cmake).replace('dll', 'dll.a') | Set-Content $Env:MINICONDA\Library\mingw-w64\lib\cmake\openblas\OpenBLASConfig.cmake
31
- - cmake -G "NMake Makefiles" -DOpenBLAS_DIR=%MINICONDA%\Library\mingw-w64\lib\cmake\openblas -DCMAKE_INSTALL_PREFIX=%MINICONDA%\Library -DBUILD_TESTS=ON .
31
+ - cmake -G "NMake Makefiles" -DOpenBLAS_DIR=%MINICONDA%\Library\mingw-w64\lib\cmake\openblas -DCMAKE_INSTALL_PREFIX=%MINICONDA%\Library -DBUILD_TESTS=ON -DDOWNLOAD_GTEST=ON .
32
32
- nmake test_xtensor_blas
33
33
- cd test
34
34
Original file line number Diff line number Diff line change 39
39
# Note: conda activate doesn't work here, because it creates a new shell!
40
40
- script : |
41
41
conda install cmake==3.14.0 ^
42
- gtest==1.10.0 ^
43
42
mkl-devel ^
44
43
ninja ^
45
44
xtensor=0.21.4 ^
66
65
-DCMAKE_C_COMPILER=clang-cl ^
67
66
-DCMAKE_CXX_COMPILER=clang-cl ^
68
67
-DBUILD_TESTS=ON ^
68
+ -DDOWNLOAD_GTEST=ON ^
69
69
$(Build.SourcesDirectory)
70
70
displayName: "Configure xtensor-blas"
71
71
workingDirectory: $(Build.BinariesDirectory)
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
69
69
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_cxx_std_flag} -march=native -Wunused-parameter -Wextra -Wreorder -Wconversion -Wsign-conversion" )
70
70
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wold-style-cast -Wunused-variable" )
71
71
else () # We are using clang-cl
72
- set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_cxx_std_flag} /EHsc /MP /bigobj" )
72
+ set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${_cxx_std_flag} /EHsc /MP /bigobj -Wno-unused-command-line-argument " )
73
73
set (CMAKE_EXE_LINKER_FLAGS /MANIFEST:NO )
74
74
add_definitions (-D_CRT_SECURE_NO_WARNINGS)
75
75
add_definitions (-D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING)
@@ -99,6 +99,8 @@ if(DOWNLOAD_GTEST OR GTEST_SRC_DIR)
99
99
message (FATAL_ERROR "Build step for googletest failed: ${result} " )
100
100
endif ()
101
101
102
+ set (gtest_force_shared_crt ON CACHE BOOL "" FORCE)
103
+
102
104
# Add googletest directly to our build. This defines
103
105
# the gtest and gtest_main targets.
104
106
add_subdirectory (${CMAKE_CURRENT_BINARY_DIR} /googletest-src
You can’t perform that action at this time.
0 commit comments