We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acccd23 commit bdb9d38Copy full SHA for bdb9d38
CMakeLists.txt
@@ -602,7 +602,9 @@ if(WITH_SYSTEMD)
602
add_subdirectory(systemd)
603
endif()
604
605
-add_subdirectory(etc/sysctl)
+if(LINUX)
606
+ add_subdirectory(etc/sysctl)
607
+endif()
608
609
include(CTags)
610
option(CTAG_EXCLUDES "Exclude files/directories when running ctag.")
etc/sysctl/CMakeLists.txt
@@ -1,8 +1,9 @@
1
-if(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "i386|i686|arm|ARM")
+if(CMAKE_SIZEOF_VOID_P EQUAL 8)
2
# 4194304 is the maximum limit possible on 64-bit CONFIG_BASE_FULL kernels.
3
# Keep the default for 32-bit systems.
4
set(sysctl_pid_max "kernel.pid_max = 4194304")
5
6
7
configure_file(90-ceph-osd.conf.in
8
- ${CMAKE_CURRENT_SOURCE_DIR}/90-ceph-osd.conf @ONLY)
+ ${CMAKE_CURRENT_SOURCE_DIR}/90-ceph-osd.conf
9
+ @ONLY)
0 commit comments