mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-04 19:36:27 +00:00
CMake on Windows: Detect 64 bit for library dir
This commit is contained in:
parent
03e2ea5df9
commit
7b62fc2169
@ -18,7 +18,13 @@ if(WIN32)
|
||||
# use radare2 libraries from submodule on windows
|
||||
set(IAITO_WIN32_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../iaito_win32")
|
||||
list(APPEND CMAKE_PREFIX_PATH "${IAITO_WIN32_DIR}")
|
||||
|
||||
if(CMAKE_SIZEOF_VOID_P EQUAL 8) # 64 bit
|
||||
list(APPEND CMAKE_LIBRARY_PATH "${IAITO_WIN32_DIR}/radare2/lib64")
|
||||
else()
|
||||
list(APPEND CMAKE_LIBRARY_PATH "${IAITO_WIN32_DIR}/radare2/lib32")
|
||||
endif()
|
||||
|
||||
set(RADARE2_INCLUDE_DIRS "${IAITO_WIN32_DIR}/radare2/include/libr" "${IAITO_WIN32_DIR}/include")
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user