diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 95100aa5b..2495c0567 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -211,7 +211,7 @@ endif() if(ENABLE_CAPSTONE) util_exe_func(capVol capVol.cc) - target_include_directories(capVol PUBLIC "${PROJECT_SOURCE_DIR}/capstone_clis") + target_include_directories(capVol PRIVATE "${PROJECT_SOURCE_DIR}/capstone_clis") endif() # send all the newly added utility executable targets diff --git a/test/capVol.cc b/test/capVol.cc index 5eaa0b52c..a9149c585 100644 --- a/test/capVol.cc +++ b/test/capVol.cc @@ -95,13 +95,9 @@ int main(int argc, char** argv) { bool volume_flag = false, write_flag = false, analytic_flag = false, verbose_flag = false; for (int i = 1; i < argc - 2; ++i) { - bool flagDone = false; if (*argv[i] == '-') { for (int j = 1; argv[i][j] != '\0'; ++j) { switch(argv[i][j]) { - case '-': - flagDone = true; - break; case 'a': analytic_flag = true; break;