aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2017-01-15 00:31:51 +0000
committerStephen Kelly <steveire@gmail.com>2017-01-15 11:18:33 +0000
commit006f45016664cf3d242c92a3ca88c785681b296d (patch)
treee23db3661ef4765642bbebd2f541b7ed44e389d4
parent05666e54631456f2b210ffe76495403ec3162b3d (diff)
downloadextra-cmake-modules-006f45016664cf3d242c92a3ca88c785681b296d.tar.gz
extra-cmake-modules-006f45016664cf3d242c92a3ca88c785681b296d.tar.bz2
Bindings: Make the module name part of the test name
-rw-r--r--find-modules/FindPythonModuleGeneration.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/find-modules/FindPythonModuleGeneration.cmake b/find-modules/FindPythonModuleGeneration.cmake
index 434c4381..905bde49 100644
--- a/find-modules/FindPythonModuleGeneration.cmake
+++ b/find-modules/FindPythonModuleGeneration.cmake
@@ -442,7 +442,7 @@ headers = sipAPI${modulename_value}
set_property(TARGET Py${pyversion}KF5${modulename_value} PROPERTY PREFIX "")
set_property(TARGET Py${pyversion}KF5${modulename_value} PROPERTY OUTPUT_NAME py${pyversion}/${pythonnamespace_value}/${modulename_value})
- add_test(NAME Py${pyversion}Test COMMAND ${GPB_PYTHON${pyversion}_COMMAND} "${CMAKE_SOURCE_DIR}/autotests/pythontest.py" ${CMAKE_CURRENT_BINARY_DIR}/py${pyversion})
+ add_test(NAME Py${pyversion}Test${modulename_value} COMMAND ${GPB_PYTHON${pyversion}_COMMAND} "${CMAKE_SOURCE_DIR}/autotests/pythontest.py" ${CMAKE_BINARY_DIR}/py${pyversion})
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/py${pyversion}/${pythonnamespace_value}
DESTINATION lib/python${pyversion${pyversion}_maj_min}/${GPB_INSTALL_DIR_SUFFIX})