From f76a07bc66b2956b9744c65c269a923af6b54eba Mon Sep 17 00:00:00 2001 From: PrasannaLanka Date: Mon, 8 Apr 2024 19:31:12 +0530 Subject: [PATCH] removing include directory in build --- Manylinux2014_Compliant_Source/pkg/build.sh | 2 +- src/CMakeLists.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Manylinux2014_Compliant_Source/pkg/build.sh b/Manylinux2014_Compliant_Source/pkg/build.sh index b72b1aa6..1766b418 100644 --- a/Manylinux2014_Compliant_Source/pkg/build.sh +++ b/Manylinux2014_Compliant_Source/pkg/build.sh @@ -18,7 +18,7 @@ cd .. cmake -DCMAKE_BUILD_TYPE=Release .. && make -j"$(nproc)" && make install cd .. -cp build/include/vocabulary.h Manylinux2014_Compliant_Source/pkg/ir2vec/ +cp build/vocabulary.h Manylinux2014_Compliant_Source/pkg/ir2vec/ cp src/include/utils.h Manylinux2014_Compliant_Source/pkg/ir2vec/ cp build/src/version.h Manylinux2014_Compliant_Source/pkg/ir2vec/ bash Manylinux2014_Compliant_Source/pkg/regen-oracle.sh diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 85fdccd7..6925cd14 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,14 +1,14 @@ configure_file (./include/version.h.cmake version.h @ONLY) include_directories(./include ${CMAKE_CURRENT_BINARY_DIR}) -include_directories(${CMAKE_BINARY_DIR}/include) +include_directories(${CMAKE_BINARY_DIR}) set(commonsrc FlowAware.cpp Symbolic.cpp utils.cpp) set(libsrc libIR2Vec.cpp ${commonsrc}) set(binsrc CollectIR.cpp IR2Vec.cpp) option(LLVM_IR2VEC "where to enable IR2Vec as subproject for LLVM" OFF) execute_process( - COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/include - COMMAND bash generate_vocabulary.sh ${CMAKE_BINARY_DIR}/include/vocabulary.h + + COMMAND bash generate_vocabulary.sh ${CMAKE_BINARY_DIR}/vocabulary.h WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMAND echo "Vocabulary file generated." )