Skip to content

Commit cda72e2

Browse files
committed
Set Position Independent Code when compiling miniexpr
1 parent 4e65f59 commit cda72e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ target_link_libraries(blosc2_ext PRIVATE Python::NumPy)
5050
# Fetch and build miniexpr library
5151
include(FetchContent)
5252

53+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
5354
set(MINIEXPR_BUILD_SHARED OFF CACHE BOOL "Build miniexpr shared library" FORCE)
5455
set(MINIEXPR_BUILD_TESTS OFF CACHE BOOL "Build miniexpr tests" FORCE)
5556
set(MINIEXPR_BUILD_EXAMPLES OFF CACHE BOOL "Build miniexpr examples" FORCE)

0 commit comments

Comments
 (0)