You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/non_limited_api/CMakeLists.txt
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11,11 +11,16 @@ endif()
11
11
12
12
option(PYBIND11_NONLIMITEDAPI_BUILD_STUBS ""ON)
13
13
14
+
set(PYBIND11_NONLIMITEDAPI_PYTHON_MIN_VERSION_HEX ""CACHESTRING"A hex Python version to bake into the library, e.g. `0x030800f0` for 3.8 (the `f0` suffix is always there and means a release version).")
15
+
set(PYBIND11_NONLIMITEDAPI_SUFFIX ""CACHESTRING"A custom suffix to append to the built library name. Should normally be `[_AppName][_X.Y]`, where X,Y is the Python version.")
16
+
set(PYBIND11_NONLIMITEDAPI_LIBRARY_OUTPUT_DIR ""CACHEPATH"Replaces the library installation path for the shim.")
target_compile_definitions(pybind11nonlimitedapi_stubs PUBLIC PYBIND11_NONLIMITEDAPI_LIB_SUFFIX_FOR_MODULE=\"${PYBIND11_NONLIMITEDAPI_SUFFIX}\")
19
24
20
25
install(TARGETS pybind11nonlimitedapi_stubs
21
26
ARCHIVE DESTINATION lib
@@ -28,9 +33,6 @@ if (${PYBIND11_NONLIMITEDAPI_BUILD_STUBS})
28
33
endif()
29
34
endif()
30
35
31
-
set(PYBIND11_NONLIMITEDAPI_PYTHON_MIN_VERSION_HEX ""CACHESTRING"A hex Python version to bake into the library, e.g. `0x030800f0` for 3.8 (the `f0` suffix is always there and means a release version).")
32
-
set(PYBIND11_NONLIMITEDAPI_SUFFIX ""CACHESTRING"A custom suffix to append to the built library name. Should normally be `[_AppName][_X.Y]`, where X,Y is the Python version.")
33
-
set(PYBIND11_NONLIMITEDAPI_LIBRARY_OUTPUT_DIR ""CACHEPATH"Replaces the library installation path for the shim.")
34
36
if (PYBIND11_NONLIMITEDAPI_PYTHON_MIN_VERSION_HEX STREQUAL"")
35
37
message("Not building pybind11nonlimitedapi because no Python version is specified.")
0 commit comments