You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CMakeLists.txt
+17-14Lines changed: 17 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@
23
23
# SOFTWARE.
24
24
#
25
25
26
-
cmake_minimum_required(VERSION 3.14)
26
+
cmake_minimum_required(VERSION 3.13.4)
27
27
28
28
if(NOTCMAKE_BUILD_TYPE)
29
29
set(CMAKE_BUILD_TYPE"Release"CACHESTRING"Choose the type of build, options are: Debug, Release, or MinSizeRel." FORCE)
@@ -70,7 +70,9 @@ option(LTO "Check for IPO/LTO support and enable, if supported. May require gold
70
70
option(LINT_EGL_HEADERS "Set an define that'll make the egl.h only export the extension definitions, prototypes that are explicitly marked as required."OFF)
71
71
option(DEBUG_DRM_PLANE_ALLOCATIONS "Add logging in modesetting.c for debugging the process of choosing a fitting DRM plane for a framebuffer layer."OFF)
72
72
option(USE_LEGACY_KMS "Force the use of legacy KMS."OFF)
73
-
option(PIE "Compile as position-independent executable."OFF)
73
+
74
+
# This is a CMake recognized variable, but we set it to off by default here.
75
+
option(CMAKE_POSITION_INDEPENDENT_CODE"Enable/Disable Position Independent Code"OFF)
74
76
75
77
set(FILESYSTEM_LAYOUTS default meta-flutter)
76
78
set(FILESYSTEM_LAYOUT "default"CACHESTRING"Where to look for the icudtl.dat, app.so/libapp.so, flutter asset bundle.")
@@ -82,7 +84,6 @@ option(SENTRY_PLUGIN_BUNDLE_CRASHPAD_HANDLER "Bundle the crashpad_handler with t
82
84
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
83
85
84
86
include(CheckCCompilerFlag)
85
-
include(CheckPIESupported)
86
87
87
88
# Those libraries we definitely need.
88
89
include(FindPkgConfig)
@@ -103,14 +104,19 @@ add_executable(
103
104
src/main.c
104
105
)
105
106
106
-
# disable PIE for the main executable
107
-
check_pie_supported(OUTPUT_VARIABLE CHECK_PIE_SUPPORTED_OUTPUT LANGUAGES CXX)
0 commit comments