File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,6 @@ set_property(
4444 CRITICAL
4545 OFF )
4646add_compile_definitions (SPDLOG_ACTIVE_LEVEL=SPDLOG_LEVEL_${MQT_QMAP_LOG_LEVEL} )
47- # todo: this might not be the right place to put this but required for spdlog and python bindings on
48- # linux
49- set (CMAKE_POSITION_INDEPENDENT_CODE ON )
5047
5148option (BUILD_MQT_QMAP_BINDINGS "Build the MQT QMAP Python bindings" OFF )
5249if (BUILD_MQT_QMAP_BINDINGS)
Original file line number Diff line number Diff line change @@ -89,6 +89,8 @@ set(SPDLOG_VERSION
8989 1.15.3
9090 CACHE STRING "spdlog version" )
9191set (SPDLOG_URL https://github.com/gabime/spdlog/archive/refs/tags/v${SPDLOG_VERSION} .tar.gz)
92+ # Add position independent code for spdlog, this is required for python bindings on linux
93+ set (SPDLOG_BUILD_PIC ON )
9294FetchContent_Declare(spdlog URL ${SPDLOG_URL} FIND_PACKAGE_ARGS ${SPDLOG_VERSION} )
9395list (APPEND FETCH_PACKAGES spdlog)
9496
You can’t perform that action at this time.
0 commit comments