Skip to content

Commit 7d720ca

Browse files
committed
cmake: don't use generated files to detect a submodule
Even if Makefile for some reason was checked in in a submodule, it is still a generated file, will be cleaned, won't be in a source package. One cannot jump to conclusions if it doesn't exist.
1 parent 7f5849a commit 7d720ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

storage/rocksdb/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ MACRO(SKIP_ROCKSDB_PLUGIN msg)
55
RETURN()
66
ENDMACRO()
77

8-
IF (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/rocksdb/Makefile")
9-
SKIP_ROCKSDB_PLUGIN("Missing Makefile in rocksdb directory. Try \"git submodule update\".")
8+
IF (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/rocksdb/CMakeLists.txt")
9+
SKIP_ROCKSDB_PLUGIN("Missing CMakeLists.txt in rocksdb directory. Try \"git submodule update\".")
1010
ENDIF()
1111

1212
CHECK_LIBRARY_EXISTS(rt timer_delete "" HAVE_TIMER_DELETE)

0 commit comments

Comments
 (0)