Skip to content

Commit

Permalink
Delete old PIE setting
Browse files Browse the repository at this point in the history
  • Loading branch information
folmos-at-orange committed Oct 4, 2023
1 parent 3a688cd commit f8050bf
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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(
Expand Down

0 comments on commit f8050bf

Please sign in to comment.