18 lines
896 B
Diff
18 lines
896 B
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -25,11 +25,11 @@
|
|
set(APP_EXEC ${CMAKE_PROJECT_NAME})
|
|
set(DAEMON_EXEC ${CMAKE_PROJECT_NAME}-daemon)
|
|
set(DAEMON_PATH ${CMAKE_INSTALL_FULL_LIBEXECDIR}/${DAEMON_EXEC})
|
|
-if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86")
|
|
+if(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|
set(BITNESS "32")
|
|
-else(${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86")
|
|
+else(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|
set(BITNESS "64")
|
|
-endif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "i.86")
|
|
+endif(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations -Wno-unused-result")
|
|
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Wextra -Wuninitialized -Wstrict-prototypes -Wformat -Wformat-security")
|
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now")
|