diff options
author | Brad King <brad.king@kitware.com> | 2019-04-04 15:28:41 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-04-04 15:28:49 (GMT) |
commit | d1c2f8787ceb0cb5e30d433e05f774bbdd910ef9 (patch) | |
tree | 027dd1a1ee0d80c0b7182062fae3a01c3c55c61a /Tests/FindPython/CMakeLists.txt | |
parent | a63a50c77af65092d82b9c3a6de3ea34c63605d4 (diff) | |
parent | 8a2f62cc18ece0ebfed0ff6abf53d419d43d2fa1 (diff) | |
download | CMake-d1c2f8787ceb0cb5e30d433e05f774bbdd910ef9.zip CMake-d1c2f8787ceb0cb5e30d433e05f774bbdd910ef9.tar.gz CMake-d1c2f8787ceb0cb5e30d433e05f774bbdd910ef9.tar.bz2 |
Merge topic 'FindPython-handle-virtual-env'
8a2f62cc18 FindPython*: Add capability to control virtual env handling.
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3173
Diffstat (limited to 'Tests/FindPython/CMakeLists.txt')
-rw-r--r-- | Tests/FindPython/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/FindPython/CMakeLists.txt b/Tests/FindPython/CMakeLists.txt index 38211a4..d6f50e7 100644 --- a/Tests/FindPython/CMakeLists.txt +++ b/Tests/FindPython/CMakeLists.txt @@ -68,6 +68,17 @@ if(CMake_TEST_FindPython) --build-options ${build_options} --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION> ) + + add_test(NAME FindPython.VirtualEnv COMMAND + ${CMAKE_CTEST_COMMAND} -C $<CONFIGURATION> + --build-and-test + "${CMake_SOURCE_DIR}/Tests/FindPython/VirtualEnv" + "${CMake_BINARY_DIR}/Tests/FindPython/VirtualEnv" + ${build_generator_args} + --build-project TestVirtualEnv + --build-options ${build_options} + --test-command ${CMAKE_CTEST_COMMAND} -V -C $<CONFIGURATION> + ) endif() if(CMake_TEST_FindPython_NumPy) |