Drop -fconcepts from C flags as these are supported for C++ only
[platform/core/system/sessiond.git] / CMakeLists.txt
index a6da765..406ece4 100644 (file)
@@ -5,8 +5,8 @@ project(sessiond LANGUAGES C CXX)
 # and we don't want "libsessiond" to become "liblibsessiond". That would be tragic.
 set(CMAKE_SHARED_LIBRARY_PREFIX "")
 
-# Needed for ASLR to work
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fPIE -Wno-error=shadow -Werror=missing-field-initializers -fconcepts")
+# PIE is needed for ASLR to work
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fPIE -Wno-error=shadow -Werror=missing-field-initializers")
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fPIE -Wno-error=shadow -Werror=missing-field-initializers -fconcepts")
 set(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -pie")