From b1840d2a320f7f0f5d4c8d01f8322abf1dfccfb9 Mon Sep 17 00:00:00 2001 From: Michel Ferrero Date: Wed, 4 Sep 2013 12:54:46 +0200 Subject: [PATCH] Further fix of issue with installation of __init__ modified: cmake/TRIQSConfig.cmake.in --- cmake/TRIQSConfig.cmake.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/TRIQSConfig.cmake.in b/cmake/TRIQSConfig.cmake.in index 20a1a75a..c85c7711 100644 --- a/cmake/TRIQSConfig.cmake.in +++ b/cmake/TRIQSConfig.cmake.in @@ -140,10 +140,10 @@ file(WRITE ${CMAKE_BINARY_DIR}/.python/__init__.py "__all__=[]") set(partial_dir ${python_destination}) while(partial_dir MATCHES "/") string(REGEX REPLACE "/[^/]*$" "" partial_dir ${partial_dir}) - if(NOT EXISTS ${TRIQS_PYTHON_LIB_DEST}/${partial_dir}/__init__.py) + if(NOT EXISTS ${TRIQS_PATH}/${TRIQS_PYTHON_LIB_DEST}/${partial_dir}/__init__.py) execute_process(COMMAND cp ${CMAKE_BINARY_DIR}/.python/__init__.py ${CMAKE_BINARY_DIR}/pytriqs/${partial_dir}) install(FILES ${CMAKE_BINARY_DIR}/.python/__init__.py DESTINATION ${TRIQS_PYTHON_LIB_DEST}/${partial_dir}) - endif(NOT EXISTS ${TRIQS_PYTHON_LIB_DEST}/${partial_dir}/__init__.py) + endif(NOT EXISTS ${TRIQS_PATH}/${TRIQS_PYTHON_LIB_DEST}/${partial_dir}/__init__.py) endwhile(partial_dir MATCHES "/") # Install all other files