mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 18:39:07 +08:00
65c66cd748
* [capstone] update to 5.0.0 alpha * [triton] upgrade to support capstone 5 * [triton] fix incorrect library linkage * [triton] bump port version * [capstone] Silence CRT Secure Function warning * [capstone] update to 5.0.0-rc2 Co-authored-by: MACHIZAUD Andréa <andrea.machizaud@adobe.com>
28 lines
1.5 KiB
Diff
28 lines
1.5 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 966ded8..baf0ec3 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -52,7 +52,6 @@ if(PYTHON_BINDINGS)
|
|
find_package(PythonInterp ${PYTHON_VERSION} REQUIRED)
|
|
find_package(PythonLibs ${PYTHON_VERSION} REQUIRED)
|
|
include_directories(${PYTHON_INCLUDE_DIRS})
|
|
- add_definitions("-DPYTHON_LIBRARIES=\"${PYTHON_LIBRARIES}\"")
|
|
add_custom_target(test-python
|
|
COMMAND ${PYTHONPATH_CMD} ${PYTHON_EXECUTABLE} -m unittest discover ${TRITON_ROOT}/src/testers/unittests
|
|
DEPENDS python-triton
|
|
diff --git a/src/libtriton/CMakeLists.txt b/src/libtriton/CMakeLists.txt
|
|
index 6770b08..701d55b 100644
|
|
--- a/src/libtriton/CMakeLists.txt
|
|
+++ b/src/libtriton/CMakeLists.txt
|
|
@@ -326,8 +326,8 @@ if(PYTHON_BINDINGS)
|
|
)
|
|
execute_process (COMMAND ${PYTHON_EXECUTABLE} -c "from sysconfig import get_path; print(get_path('platlib'))" OUTPUT_VARIABLE PYTHON_SITE_PACKAGES OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Windows" AND NOT ${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
|
|
- install (FILES ${CMAKE_CURRENT_BINARY_DIR}/\${CMAKE_INSTALL_CONFIG_NAME}/triton${PYTHON_SUFFIX} DESTINATION ${PYTHON_SITE_PACKAGES})
|
|
+ install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_CONFIG_NAME}/triton${PYTHON_SUFFIX} DESTINATION share/triton)
|
|
else()
|
|
- install (FILES ${CMAKE_CURRENT_BINARY_DIR}/triton${PYTHON_SUFFIX} DESTINATION ${PYTHON_SITE_PACKAGES})
|
|
+ install (FILES ${CMAKE_CURRENT_BINARY_DIR}/triton${PYTHON_SUFFIX} DESTINATION share/triton)
|
|
endif()
|
|
endif()
|