replace backslashes with forward slashes in conda path

This commit is contained in:
Thomas Fussell 2017-07-12 00:31:12 -07:00
parent 0be7563f8b
commit 7c333ad923

View File

@ -5,6 +5,8 @@ if(NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
endif() endif()
string(REGEX REPLACE "\\\\" "/" CONDA_ROOT ${CONDA_ROOT})
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/setup.py.cmake" configure_file("${CMAKE_CURRENT_SOURCE_DIR}/setup.py.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/setup.py") "${CMAKE_CURRENT_BINARY_DIR}/setup.py")