We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c11213 commit dec78aeCopy full SHA for dec78ae
projects/hello-f2py/CMakeLists.txt
@@ -6,4 +6,7 @@ find_package(PythonExtensions REQUIRED)
6
find_package(NumPy REQUIRED)
7
find_package(F2PY REQUIRED)
8
9
+# see https://github.com/scikit-build/scikit-build/pull/495/
10
+set_target_properties(_f2py_runtime_library PROPERTIES POSITION_INDEPENDENT_CODE ON)
11
+
12
add_subdirectory(hello_f2py)
projects/hello-f2py/hello_f2py/CMakeLists.txt
@@ -5,4 +5,4 @@ python_extension_module(_hello)
5
target_link_libraries(_hello ${F2PY_LIBRARIES})
target_include_directories(_hello PRIVATE ${F2PY_INCLUDE_DIRS})
-install(TARGETS _hello LIBRARY DESTINATION hello)
+install(TARGETS _hello LIBRARY DESTINATION hello_f2py)
0 commit comments