From aad02c6dc09d044c112f29bebec4cc79b0e13aab Mon Sep 17 00:00:00 2001 From: Josh Blum <josh@joshknows.com> Date: Sun, 24 Jul 2011 12:27:21 -0700 Subject: video-sdl: solution for proper swig directory windows --- cmake/Modules/GrTest.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmake/Modules') 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) -- cgit v1.2.3