Porting to Centos 7: xfs file system, cmake 2.8.11 in example, static linking for -lgcc_s
| | |
| | | list(APPEND EXTERNAL_LIBS ${DBUS_LIBRARIES}) |
| | | endif(USE_DBUS_IDENTIFIER) |
| | | list(APPEND EXTERNAL_LIBS dl) |
| | | list(APPEND EXTERNAL_LIBS "-Wl,-Bdynamic") |
| | | endif(NOT MSVC) |
| | | |
| | | configure_file ( |
| | |
| | | cmake_minimum_required(VERSION 3.0) |
| | | #cmake_minimum_required(VERSION 3.0) |
| | | cmake_minimum_required(VERSION 2.8.11) |
| | | |
| | | link_directories ( "${CMAKE_CURRENT_SOURCE_DIR}/../install/lib" ) |
| | | include_directories( "${CMAKE_CURRENT_SOURCE_DIR}/../install/include" ) |
| | |
| | | currentDrive = 0; |
| | | while (NULL != (ent = getmntent(aFile))) { |
| | | if ((strncmp(ent->mnt_type, "ext", 3) == 0 |
| | | || strncmp(ent->mnt_type, "xfs", 3) == 0 |
| | | || strncmp(ent->mnt_type, "vfat", 4) == 0 |
| | | || strncmp(ent->mnt_type, "ntfs", 4) == 0) |
| | | && ent->mnt_fsname != NULL |