rocksdb-vocabulary should use FindModernMT.cmake
@@ -10,8 +10,11 @@ set(SOURCE_FILES
javah/eu_modernmt_vocabulary_rocksdb_RocksDBVocabulary.h java/eu_modernmt_vocabulary_rocksdb_RocksDBVocabulary.cpp
javah/eu_modernmt_vocabulary_rocksdb_RocksDBVocabularyBuilder.h java/eu_modernmt_vocabulary_rocksdb_RocksDBVocabularyBuilder.cpp)
+## ModernMT
+find_package(ModernMT REQUIRED COMPONENTS common)
+include_directories(${ModernMT_INCLUDE_DIRS})
+
include_directories(${CMAKE_SOURCE_DIR})
-include_directories(${MMT_INCLUDE_DIR})
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES})
install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION lib)
