Created
January 25, 2014 17:25
-
-
Save iMichka/8619996 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Wrapping/Generators/Python/CMakeLists.txt b/Wrapping/Generators/Python/CMakeLists.txt | |
index a0c13a4..c8ed74b 100644 | |
--- a/Wrapping/Generators/Python/CMakeLists.txt | |
+++ b/Wrapping/Generators/Python/CMakeLists.txt | |
@@ -234,7 +234,8 @@ if(PYTHON_EXECUTABLE) | |
) | |
endif() | |
-string(REGEX REPLACE "\\\\" "/" py_spp_nobackslashes "${py_spp}") | |
+string(REGEX REPLACE "\n" "" py_spp_no_newline "${py_spp}") | |
+string(REGEX REPLACE "\\\\" "/" py_spp_nobackslashes "${py_spp_no_newline}") | |
set(PY_SITE_PACKAGES_PATH "${py_spp_nobackslashes}" CACHE PATH "Python site-packages directory to install a .pth file pointing at WrapITK Python modules.") | |
mark_as_advanced(PY_SITE_PACKAGES_PATH) | |
if(PY_SITE_PACKAGES_PATH) | |
-- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment