blob: 818b2e434bb446d653a84d1bb7c2ae2089dc8294 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
diff -Naur avogadro-1.2.0.orig/libavogadro/src/extensions/symmetry/libmsym/CMakeLists.txt avogadro-1.2.0/libavogadro/src/extensions/symmetry/libmsym/CMakeLists.txt
--- avogadro-1.2.0.orig/libavogadro/src/extensions/symmetry/libmsym/CMakeLists.txt 2016-06-08 14:19:45.000000000 +0000
+++ avogadro-1.2.0/libavogadro/src/extensions/symmetry/libmsym/CMakeLists.txt 2016-08-01 04:18:55.910888721 +0000
@@ -7,13 +7,13 @@
set(LIBMSYM_PATCH_VERSION 0)
set(LIBMSYM_VERSION ${LIBMSYM_MAJOR_VERSION}.${LIBMSYM_MINOR_VERSION}.${LIBMSYM_PATCH_VERSION})
-set(INSTALL_LIB_DIR lib CACHE PATH "Installation directory for msym library")
+set(INSTALL_LIB_DIR lib${LIB_SUFFIX} CACHE PATH "Installation directory for msym library")
set(INSTALL_INCLUDE_DIR include CACHE PATH "Installation directory for header files")
if(WIN32 AND NOT CYGWIN)
set(DEF_INSTALL_CMAKE_DIR CMake)
else()
- set(DEF_INSTALL_CMAKE_DIR lib/cmake/libmsym)
+ set(DEF_INSTALL_CMAKE_DIR lib${LIB_SUFFIX}/cmake/libmsym)
endif()
set(INSTALL_CMAKE_DIR ${DEF_INSTALL_CMAKE_DIR} CACHE PATH "Installation directory for CMake files")
@@ -29,6 +29,9 @@
file (GLOB source src/*.c)
add_library (msym ${source})
if (BUILD_SHARED_LIBS)
+ if(CMAKE_SYSTEM_NAME MATCHES Linux)
+ target_link_libraries(msym m)
+ endif()
set_target_properties (msym PROPERTIES
POSITION_INDEPENDENT_CODE "TRUE")
endif ()
|