diff options
Diffstat (limited to 'ports/mongo-c-driver/usage')
| -rw-r--r-- | ports/mongo-c-driver/usage | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ports/mongo-c-driver/usage b/ports/mongo-c-driver/usage index 80595cd07..6fee3c684 100644 --- a/ports/mongo-c-driver/usage +++ b/ports/mongo-c-driver/usage @@ -1,9 +1,7 @@ The package mongo-c-driver is compatible with built-in CMake targets:
find_package(mongo-c-driver CONFIG REQUIRED)
- target_include_directories(${project} PRIVATE ${MONGOC_INCLUDE_DIRS})
-For use dynamic library:
- target_link_libraries(${project} PRIVATE ${MONGOC_LIBRARIES})
-For use static library:
- target_link_libraries(${project} PRIVATE ${MONGOC_STATIC_LIBRARY})
+ target_include_directories(main PRIVATE ${MONGOC_INCLUDE_DIRS})
+ target_link_libraries(main PRIVATE ${MONGOC_LIBRARIES})
+ target_compile_definitions(main PRIVATE ${MONGOC_DEFINITIONS})
|
