X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=gdcmPython%2FCMakeLists.txt;h=e1209af0aecda5eb4a6d89403faeadf8eef34883;hb=409d1e0eb9cdfb64db19a110808f27cf054d68a6;hp=e1bdef88ab9147b782986b3d41dc54c1e60bc8d1;hpb=53d0b05d5352bf967f0e43cd58b7b190b6479794;p=gdcm.git diff --git a/gdcmPython/CMakeLists.txt b/gdcmPython/CMakeLists.txt index e1bdef88..e1209af0 100644 --- a/gdcmPython/CMakeLists.txt +++ b/gdcmPython/CMakeLists.txt @@ -134,17 +134,17 @@ ENDIF(WIN32) # Install a python path file in site-packages that tells # python where to find the gdcmPython module IF(UNIX) -FIND_PATH(PYTHON_DIR "site-packages" - /usr/lib/python2.4 - /usr/lib/python2.3 - /usr/lib/python2.2 - /usr/lib/python2.1 -) -STRING(REGEX REPLACE "/usr" "" PYTHON_DIR ${PYTHON_DIR}) - -INSTALL_FILES(${PYTHON_DIR}/site-packages "gdcmPython.pth") -INSTALL_FILES(/lib/gdcm/gdcmPython "\\.py$") -INSTALL_FILES(/lib/gdcm/gdcmPython FILES "gdcm.py") + FIND_PATH(PYTHON_DIR "site-packages" + /usr/lib/python2.4 + /usr/lib/python2.3 + /usr/lib/python2.2 + /usr/lib/python2.1 + ) + STRING(REGEX REPLACE "/usr" "" PYTHON_DIR ${PYTHON_DIR}) + + INSTALL_FILES(${PYTHON_DIR}/site-packages "gdcmPython.pth") + INSTALL_FILES(/lib/gdcm/gdcmPython "\\.py$") + INSTALL_FILES(/lib/gdcm/gdcmPython FILES "gdcm.py") ENDIF(UNIX) #-----------------------------------------------------------------------------