File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -184,10 +184,10 @@ PYBIND11_NAMESPACE_END(PYBIND11_NAMESPACE)
184184#define PYBIND11_NONLIMITEDAPI_LIB_SUFFIX_FOR_MODULE nullptr
185185#endif
186186
187- #ifdef PYBIND11_NONLIMITEDAPI_LIB_PATH_RELATIVE_TO_PARENT_LIB
188- #define PYBIND11_NONLIMITEDAPI_LIB_PATH_RELATIVE_TO_PARENT_LIB_WITH_SLASH / PYBIND11_NONLIMITEDAPI_LIB_PATH_RELATIVE_TO_PARENT_LIB
187+ #ifdef PYBIND11_NONLIMITEDAPI_SHIM_PATH_RELATIVE_TO_LIBRARY_DIR
188+ #define PYBIND11_NONLIMITEDAPI_SHIM_PATH_RELATIVE_TO_LIBRARY_DIR_WITH_SLASH / PYBIND11_NONLIMITEDAPI_SHIM_PATH_RELATIVE_TO_LIBRARY_DIR
189189#else
190- #define PYBIND11_NONLIMITEDAPI_LIB_PATH_RELATIVE_TO_PARENT_LIB_WITH_SLASH
190+ #define PYBIND11_NONLIMITEDAPI_SHIM_PATH_RELATIVE_TO_LIBRARY_DIR_WITH_SLASH
191191#endif
192192
193193#ifdef _WIN32
@@ -209,15 +209,15 @@ PYBIND11_NAMESPACE_END(PYBIND11_NAMESPACE)
209209 else if (size == MAX_PATH) \
210210 throw std::runtime_error ( " pybind11 non-limited-api: The self library path is too long." ); \
211211 \
212- return std::filesystem::path (path).parent_path () PYBIND11_NONLIMITEDAPI_LIB_PATH_RELATIVE_TO_PARENT_LIB_WITH_SLASH ; \
212+ return std::filesystem::path (path).parent_path () PYBIND11_NONLIMITEDAPI_SHIM_PATH_RELATIVE_TO_LIBRARY_DIR_WITH_SLASH ; \
213213 }()
214214#else
215215#define PYBIND11_NONLIMITEDAPI_GET_SHARED_LIBRARY_DIR (module_ ) \
216216 []{ \
217217 Dl_info info; \
218218 if (!dladdr ((void *)PYBIND11_CONCAT (PyInit_, module_), &info)) \
219219 throw std::runtime_error ( " pybind11 non-limited-api: Failed to get the self library path." ); \
220- return std::filesystem::path (info.dli_fname ).parent_path () PYBIND11_NONLIMITEDAPI_LIB_PATH_RELATIVE_TO_PARENT_LIB_WITH_SLASH ; \
220+ return std::filesystem::path (info.dli_fname ).parent_path () PYBIND11_NONLIMITEDAPI_SHIM_PATH_RELATIVE_TO_LIBRARY_DIR_WITH_SLASH ; \
221221 }()
222222#endif
223223
Original file line number Diff line number Diff line change 5050 target_link_options (${PYBIND11_NONLIMITEDAPI_LIBNAME} PRIVATE -undefined dynamic_lookup)
5151 endif ()
5252
53- if (NOT (${PYBIND11_NONLIMITEDAPI_LIBRARY_OUTPUT_DIR} STREQUAL "" ))
53+ if (NOT (" ${PYBIND11_NONLIMITEDAPI_LIBRARY_OUTPUT_DIR} " STREQUAL "" ))
5454 set_target_properties (${PYBIND11_NONLIMITEDAPI_LIBNAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PYBIND11_NONLIMITEDAPI_LIBRARY_OUTPUT_DIR} )
5555 endif ()
5656
You can’t perform that action at this time.
0 commit comments