]>
Commit | Line | Data |
---|---|---|
1785bb97 JB |
1 | --- libdigidocpp-3.16.0/src/CMakeLists.txt.orig 2024-02-19 19:29:57.049518786 +0100 |
2 | +++ libdigidocpp-3.16.0/src/CMakeLists.txt 2024-02-19 19:47:49.477042281 +0100 | |
3 | @@ -292,19 +292,19 @@ if(SWIG_FOUND) | |
4 | set_property(TARGET digidoc_python PROPERTY SWIG_COMPILE_DEFINITIONS $<$<PLATFORM_ID:Windows>:SWIGWIN>) | |
5 | #configure_file(setup.py.cmake setup.py) | |
6 | #install(CODE "execute_process(COMMAND python3 ${CMAKE_CURRENT_BINARY_DIR}/setup.py install)") | |
7 | - if(NOT Python3_SITELIB) | |
8 | + if(NOT Python3_SITEARCH) | |
9 | execute_process(COMMAND /usr/bin/python3 -c | |
10 | - "from distutils import sysconfig;print(sysconfig.get_python_lib(plat_specific=False,standard_lib=False))" | |
11 | - OUTPUT_VARIABLE Python3_SITELIB OUTPUT_STRIP_TRAILING_WHITESPACE) | |
12 | + "from distutils import sysconfig;print(sysconfig.get_python_lib(plat_specific=True,standard_lib=False))" | |
13 | + OUTPUT_VARIABLE Python3_SITEARCH OUTPUT_STRIP_TRAILING_WHITESPACE) | |
14 | endif() | |
15 | if(WIN32) | |
16 | - set(Python3_SITELIB ${CMAKE_INSTALL_BINDIR}) | |
17 | - install(FILES $<TARGET_PDB_FILE:digidoc_python> DESTINATION ${Python3_SITELIB} OPTIONAL) | |
18 | + set(Python3_SITEARCH ${CMAKE_INSTALL_BINDIR}) | |
19 | + install(FILES $<TARGET_PDB_FILE:digidoc_python> DESTINATION ${Python3_SITEARCH} OPTIONAL) | |
20 | else() | |
21 | set_target_properties(digidoc_python PROPERTIES SUFFIX .so) | |
22 | endif() | |
23 | - install(TARGETS digidoc_python DESTINATION ${Python3_SITELIB}) | |
24 | - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/digidoc.py DESTINATION ${Python3_SITELIB}) | |
25 | + install(TARGETS digidoc_python DESTINATION ${Python3_SITEARCH}) | |
26 | + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/digidoc.py DESTINATION ${Python3_SITEARCH}) | |
27 | endif() | |
28 | ||
29 | set(CMAKE_SWIG_FLAGS -dllimport digidoc_csharp -namespace digidoc) |