Skip to content

Commit 3ba5c49

Browse files
committed
build: update to new IDA SDK 9.3 cmake layout and libidacpp
Drop backwards compatibility with the old ida-cmake bootstrap path. Update idacpp FetchContent URL from idax to libidacpp. Remove unused EA64 flag from prep-cmake.bat.
1 parent 480e74e commit 3ba5c49

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
66
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
77

88
# Include IDA SDK bootstrap
9-
include($ENV{IDASDK}/ida-cmake/bootstrap.cmake)
9+
include($ENV{IDASDK}/src/cmake/bootstrap.cmake)
1010
find_package(idasdk REQUIRED)
1111

1212
# Add idacpp library with fallback
@@ -21,10 +21,11 @@ else()
2121
message(STATUS "idacpp not found in IDASDK, fetching to build directory...")
2222

2323
# Use FetchContent to download idacpp into build directory
24+
# NOTE: The header-only idacpp wrapper is in the allthingsida/libidacpp repo
2425
include(FetchContent)
2526
FetchContent_Declare(
2627
idacpp
27-
GIT_REPOSITORY https://github.com/allthingsida/idacpp.git
28+
GIT_REPOSITORY https://github.com/allthingsida/libidacpp.git
2829
GIT_TAG main
2930
SOURCE_DIR ${IDACPP_LOCAL_PATH}
3031
)

prep-cmake.bat

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ if not defined IDASDK (
99
goto :eof
1010
)
1111

12-
if not exist %IDASDK%\ida-cmake\idasdkConfig.cmake (
13-
echo ida-cmake not properly installed in the IDA SDK folder.
14-
echo See: https://github.com/allthingsida/ida-cmake
12+
if not exist %IDASDK%\src\cmake\bootstrap.cmake (
13+
echo IDA SDK cmake not found at %IDASDK%\src\cmake\bootstrap.cmake
1514
goto :eof
1615
)
1716

@@ -20,7 +19,7 @@ if "%1"=="clean" (
2019
goto :eof
2120
)
2221

23-
if not exist build cmake -B build -S . -A x64 -DEA64=YES
22+
if not exist build cmake -B build -S . -A x64
2423

2524
if "%1"=="build" cmake --build build --config Release
2625

0 commit comments

Comments
 (0)