Use provided libtool via CMAKE_LIBTOOL

This commit is contained in:
Kirill A. Korinsky 2022-09-19 01:24:43 +02:00 committed by Peter Matula
parent 9bc57071b9
commit 3c93bea6d5
5 changed files with 7 additions and 0 deletions

View File

@ -48,6 +48,7 @@ ExternalProject_Add(capstone-project
"${CMAKE_C_COMPILER_OPTION}"
"${CMAKE_CXX_COMPILER_OPTION}"
-DCMAKE_POSITION_INDEPENDENT_CODE=${CMAKE_POSITION_INDEPENDENT_CODE}
-DCMAKE_LIBTOOL=${CMAKE_LIBTOOL}
# Patch the Capstone sources.
PATCH_COMMAND
${CMAKE_COMMAND} -Dcapstone_path=<SOURCE_DIR> -P ${CMAKE_CURRENT_SOURCE_DIR}/patch.cmake

View File

@ -65,6 +65,7 @@ ExternalProject_Add(googletest
"${CMAKE_C_COMPILER_OPTION}"
"${CMAKE_CXX_COMPILER_OPTION}"
-DCMAKE_POSITION_INDEPENDENT_CODE=${CMAKE_POSITION_INDEPENDENT_CODE}
-DCMAKE_LIBTOOL=${CMAKE_LIBTOOL}
LOG_DOWNLOAD ON
LOG_CONFIGURE ON
LOG_BUILD ON

View File

@ -33,6 +33,7 @@ ExternalProject_Add(keystone-project
"${CMAKE_C_COMPILER_OPTION}"
"${CMAKE_CXX_COMPILER_OPTION}"
-DCMAKE_POSITION_INDEPENDENT_CODE=${CMAKE_POSITION_INDEPENDENT_CODE}
-DCMAKE_LIBTOOL=${CMAKE_LIBTOOL}
LOG_DOWNLOAD ON
LOG_CONFIGURE ON
LOG_BUILD ON

View File

@ -53,6 +53,9 @@ ExternalProject_Add(llvm-project
# Force Python3.
-DPYTHON_EXECUTABLE=${PYTHON_EXECUTABLE}
# Use provided libtool
-DCMAKE_LIBTOOL=${CMAKE_LIBTOOL}
# Targets to be build.
-DLLVM_TARGETS_TO_BUILD=X86

View File

@ -40,6 +40,7 @@ ExternalProject_Add(yaramod-project
"${CMAKE_C_COMPILER_OPTION}"
"${CMAKE_CXX_COMPILER_OPTION}"
-DCMAKE_POSITION_INDEPENDENT_CODE=${CMAKE_POSITION_INDEPENDENT_CODE}
-DCMAKE_LIBTOOL=${CMAKE_LIBTOOL}
LOG_DOWNLOAD ON
LOG_CONFIGURE ON
LOG_BUILD ON