Skip to content

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 31, 2023
1 parent 5e13c25 commit ba156d6
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions matlab/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -116,20 +116,25 @@ endfunction()

macro(enable_gtest)
set(ARROW_GTEST_SOURCE_PREFIX "${ARROW_BINARY_DIR}/_deps/googletest-src/googletest")
set(ARROW_GTEST_INCLUDE_DIR "${ARROW_GTEST_SOURCE_PREFIX}/include")
set(ARROW_GTEST_INCLUDE_DIR "${ARROW_PREFIX}/include")

set(ARROW_GTEST_LIB_DIR "${ARROW_BINARY_DIR}/$<CONFIG>")
set(ARROW_GTEST_IMPORT_LIB_DIR "${ARROW_PREFIX}/lib")
if(WIN32)
set(ARROW_GTEST_SHARED_LIB_DIR "${ARROW_PREFIX}/bin")
else()
set(ARROW_GTEST_SHARED_LIB_DIR "${ARROW_PREFIX}/lib")
endif()
set(ARROW_GTEST_IMPORT_LIB
"${ARROW_GTEST_LIB_DIR}/${CMAKE_IMPORT_LIBRARY_PREFIX}arrow_gtest${CMAKE_IMPORT_LIBRARY_SUFFIX}"
"${ARROW_GTEST_IMPORT_LIB_DIR}/${CMAKE_IMPORT_LIBRARY_PREFIX}arrow_gtest${CMAKE_IMPORT_LIBRARY_SUFFIX}"
)
set(ARROW_GTEST_MAIN_IMPORT_LIB
"${ARROW_GTEST_LIB_DIR}/${CMAKE_IMPORT_LIBRARY_PREFIX}arrow_gtest_main${CMAKE_IMPORT_LIBRARY_SUFFIX}"
"${ARROW_GTEST_IMPORT_LIB_DIR}/${CMAKE_IMPORT_LIBRARY_PREFIX}arrow_gtest_main${CMAKE_IMPORT_LIBRARY_SUFFIX}"
)
set(ARROW_GTEST_SHARED_LIB
"${ARROW_GTEST_LIB_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}arrow_gtest${CMAKE_SHARED_LIBRARY_SUFFIX}"
"${ARROW_GTEST_SHARED_LIB_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}arrow_gtest${CMAKE_SHARED_LIBRARY_SUFFIX}"
)
set(ARROW_GTEST_MAIN_SHARED_LIB
"${ARROW_GTEST_LIB_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}arrow_gtest_main${CMAKE_SHARED_LIBRARY_SUFFIX}"
"${ARROW_GTEST_SHARED_LIB_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}arrow_gtest_main${CMAKE_SHARED_LIBRARY_SUFFIX}"
)

list(APPEND ARROW_CMAKE_ARGS "-DARROW_BUILD_TESTS=ON")
Expand Down

0 comments on commit ba156d6

Please sign in to comment.