diff --git a/svf-llvm/CMakeLists.txt b/svf-llvm/CMakeLists.txt index f6d7bc842..80624dc35 100644 --- a/svf-llvm/CMakeLists.txt +++ b/svf-llvm/CMakeLists.txt @@ -73,6 +73,12 @@ target_include_directories(SvfLLVM $ ) +set_target_properties(SvfLLVM PROPERTIES + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib +) + # Link LLVM's libraries to SvfLLVM, as well as the SVF core library target_link_libraries(SvfLLVM PUBLIC ${llvm_libs} SvfCore) diff --git a/svf/CMakeLists.txt b/svf/CMakeLists.txt index e7133dfc1..bc2d518a3 100644 --- a/svf/CMakeLists.txt +++ b/svf/CMakeLists.txt @@ -8,6 +8,12 @@ target_include_directories(SvfCore $ ) +set_target_properties(SvfCore PROPERTIES + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib +) + # Get the source files (i.e. all *.c/*.cpp files) for SVF's subprojects and add them to SvfCore file(GLOB_RECURSE SVF_CORE_SOURCES lib/*.cpp) target_sources(SvfCore PRIVATE ${SVF_CORE_SOURCES})