Skip to content

Commit 82fb96a

Browse files
committed
Fix installation paths on SL
1 parent 6e445d1 commit 82fb96a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ if(EXISTS "/etc/redhat-release")
7070
message("-- This is a CentOS system")
7171
endif(LINUX_ISSUE MATCHES "CentOS")
7272
if(LINUX_ISSUE MATCHES "Fedora")
73-
set(CPACK_GENERATOR "RPM")
73+
set(CPACK_GENERATOR "RPM")
7474
if(LINUX_ISSUE MATCHES "26")
7575
message("-- This is a Fedora 26 system")
7676
set(CPACK_RPM_PACKAGE_REQUIRES "python3-libs, pcre, gmp, libuuid, sqlite, gtkmm30, boost-system, boost-filesystem, boost-program-options, boost-regex, libstdc++, python3-matplotlib, dvipng, texlive")
@@ -88,6 +88,10 @@ if(EXISTS "/etc/redhat-release")
8888
if(LINUX_ISSUE MATCHES "Scientific")
8989
set(CPACK_GENERATOR "RPM")
9090
set(CPACK_SYSTEM_NAME "scientific")
91+
if(PACKAGING_MODE)
92+
set(PYTHON_SITE_PATH "/usr/lib/python2.7/site-packages")
93+
set(INSTALL_LATEX_DIR "/usr/share/texmf")
94+
endif()
9195
set(CPACK_RPM_PACKAGE_REQUIRES "python-libs, pcre, gmp, libuuid, sqlite, gtkmm30, boost-system, boost-filesystem, boost-program-options, boost-regex, libstdc++, python-matplotlib, dvipng, texlive")
9296
message("-- This is a Scientific Linux system")
9397
endif()

0 commit comments

Comments
 (0)