Skip to content

Commit 60e7202

Browse files
committed
build(cmake): Avoid overwriting rapidjson's include dir
1 parent 3c97ebe commit 60e7202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/unit/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ project("kafka-unit-test")
55
#---------------------------
66
if (DEFINED ENV{RAPIDJSON_INCLUDE_DIRS})
77
set(RAPIDJSON_INCLUDE_DIRS $ENV{RAPIDJSON_INCLUDE_DIRS})
8-
else ()
8+
elseif (NOT DEFINED RAPIDJSON_INCLUDE_DIRS)
99
find_file(RAPIDJSON_HEADER
1010
NAMES rapidjson.h
1111
HINTS /usr/include/rapidjson /usr/local/include/rapidjson /opt/homebrew/include/rapidjson)

0 commit comments

Comments
 (0)