Skip to content

Commit

Permalink
cmake lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Haslik authored and Jan Haslik committed May 23, 2024
1 parent 28a760f commit 1d1ef66
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions search/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ set(MONGOCXX_DIR "${CMAKE_SOURCE_DIR}/mongo-cxx-driver")
set(LIBMONGOCXX_INCLUDE_DIRS "${MONGOCXX_DIR}/src/mongocxx/include")
set(LIBBSONCXX_INCLUDE_DIRS "${MONGOCXX_DIR}/src/bsoncxx/include")

list(APPEND CMAKE_PREFIX_PATH "${MONGOCXX_DIR}/buildcmake")

add_executable(Search api/api.cpp searcher/searcher.cpp db/db.cpp)

Expand All @@ -31,6 +32,3 @@ target_link_libraries(Search PRIVATE

# Specify the relative path to your library without -l flag
target_link_libraries(Search PRIVATE ${CMAKE_SOURCE_DIR}/lib/libJetPlusPlusLib.dylib)

# Add the buildcmake directory to CMAKE_PREFIX_PATH
list(APPEND CMAKE_PREFIX_PATH "${MONGOCXX_DIR}/buildcmake")

0 comments on commit 1d1ef66

Please sign in to comment.