From f8050bf9f230f1180b659b16e819f3b7af8742a0 Mon Sep 17 00:00:00 2001 From: Felipe Olmos Date: Wed, 4 Oct 2023 06:10:21 +0200 Subject: [PATCH] Delete old PIE setting --- CMakeLists.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b8ff49cf..2bfbfa7ca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,11 +110,6 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/packaging") # Use "-fPIC" / "-fPIE" for all targets by default, including static libs set(CMAKE_POSITION_INDEPENDENT_CODE ON) -# CMake doesn't add "-pie" by default for executables (CMake issue #14983) -if(NOT MSVC OR NOT APPLE) - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pie") -endif() - set(CMAKE_CXX_VISIBILITY_PRESET hidden) set(CMAKE_VISIBILITY_INLINES_HIDDEN 1) @@ -123,7 +118,7 @@ if(CMAKE_BUILD_TYPE EQUAL "Debug") set(LLVM_REQUIRES_RTTI 1) endif() -# Process dependencies Find MPI if required +# Process dependencies: Find MPI if required if(MPI) find_package(MPI 2.0 REQUIRED) message(