Skip to content

Commit

Permalink
Make it build Position Independent Code fPIC by default
Browse files Browse the repository at this point in the history
  • Loading branch information
knro committed Apr 15, 2021
1 parent 482c5ef commit 8a579b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake_modules/CMakeCommon.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ IF (NOT ${CMAKE_CXX_COMPILER_ID} STREQUAL "MSVC")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
ENDIF ()

# Position Independent Code
set(CMAKE_POSITION_INDEPENDENT_CODE ON)

# Ccache support
IF (ANDROID OR UNIX OR APPLE)
FIND_PROGRAM(CCACHE_FOUND ccache)
Expand Down

0 comments on commit 8a579b9

Please sign in to comment.