Skip to content

Instantly share code, notes, and snippets.

@iMichka
Created January 25, 2014 17:25
Show Gist options
  • Save iMichka/8619996 to your computer and use it in GitHub Desktop.
Save iMichka/8619996 to your computer and use it in GitHub Desktop.
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