summaryrefslogtreecommitdiff
path: root/cmake/Modules
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-07-24 12:27:21 -0700
committerJosh Blum <josh@joshknows.com>2011-07-24 12:27:21 -0700
commitaad02c6dc09d044c112f29bebec4cc79b0e13aab (patch)
tree4800a3e053bfc654db975b5191e8cbdbb366f001 /cmake/Modules
parenta3425a6fbc0e90825ced32008e6f536542cb6501 (diff)
video-sdl: solution for proper swig directory windows
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/GrTest.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/Modules/GrTest.cmake b/cmake/Modules/GrTest.cmake
index a3605f1981..3085790088 100644
--- a/cmake/Modules/GrTest.cmake
+++ b/cmake/Modules/GrTest.cmake
@@ -50,10 +50,10 @@ FUNCTION(GR_ADD_TEST test_name)
#SWIG generates the python library files into a subdirectory.
#Therefore, we must append this subdirectory into PYTHONPATH.
- #Only do this for the python directories ending with "swig".
+ #Only do this for the python directories matching the following:
FOREACH(pydir ${GR_TEST_PYTHON_DIRS})
GET_FILENAME_COMPONENT(name ${pydir} NAME)
- IF(name MATCHES "^(swig|lib)$")
+ IF(name MATCHES "^(swig|lib|src)$")
LIST(APPEND GR_TEST_PYTHON_DIRS ${pydir}/${CMAKE_BUILD_TYPE})
ENDIF()
ENDFOREACH(pydir)