You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think CMAKE_CURRENT_SOURCE_DIR better than CMAKE_SOURCE_DIR when compiling redis3m in a project with multiple dependencies (When compiling redis3m alone, the two variable is same).
The text was updated successfully, but these errors were encountered:
zyy17
changed the title
CMake issue (when use add_subdirectory)
CMake issue when compiling redis3m as submodule (when using CMake add_subdirectory)
Mar 2, 2017
zyy17
changed the title
CMake issue when compiling redis3m as submodule (when using CMake add_subdirectory)
CMake issue when compiling redis3m as submodule (use CMake add_subdirectory)
Mar 2, 2017
I use
redis3m
as git submodule in my project:I add CMake
add_subdirectory
to compileredis3m
:add_subdirectory(redis3m)
Then I got the following error message:
I fix the error by changing
CMAKE_SOURCE_DIR
toCMAKE_CURRENT_SOURCE_DIR
:I think
CMAKE_CURRENT_SOURCE_DIR
better thanCMAKE_SOURCE_DIR
when compilingredis3m
in a project with multiple dependencies (When compilingredis3m
alone, the two variable is same).The text was updated successfully, but these errors were encountered: