File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -21,12 +21,13 @@ install:
21
21
- conda config --set always_yes yes --set changeps1 no
22
22
- conda update -q conda
23
23
- conda info -a
24
- - conda install gtest cmake -c conda-forge
24
+ - conda install cmake -c conda-forge
25
25
- conda install pytest numpy pybind11==2.4.3 xtensor==0.21.4 -c conda-forge
26
26
- " set PYTHONHOME=%MINICONDA%"
27
- - cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%MINICONDA%\\Library -D BUILD_TESTS=ON -D PYTHON_EXECUTABLE=%MINICONDA%\\python.exe .
27
+ - cmake -G "NMake Makefiles" -D CMAKE_INSTALL_PREFIX=%MINICONDA%\\Library -D BUILD_TESTS=ON -D PYTHON_EXECUTABLE=%MINICONDA%\\python.exe -DDOWNLOAD_GTEST=ON .
28
28
- nmake test_xtensor_python
29
29
- nmake install
30
+ - rmdir /s/q "test/googletest-src"
30
31
31
32
build_script :
32
33
- py.test -s
Original file line number Diff line number Diff line change 31
31
source activate xtensor-python
32
32
py.test -s
33
33
displayName: Test xtensor-python (Python)
34
- workingDirectory: $(Build.BinariesDirectory)/build
34
+ workingDirectory: $(Build.SourcesDirectory)
Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ if (DOWNLOAD_GTEST OR GTEST_SRC_DIR)
66
66
message (FATAL_ERROR "Build step for googletest failed: ${result} " )
67
67
endif ()
68
68
69
+ set (gtest_force_shared_crt ON CACHE BOOL "" FORCE )
70
+
69
71
# Add googletest directly to our build. This defines
70
72
# the gtest and gtest_main targets.
71
73
add_subdirectory (${CMAKE_CURRENT_BINARY_DIR} /googletest-src
You can’t perform that action at this time.
0 commit comments