Fix string comparison in cmake.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
Andrea Odetti 2021-02-04 10:12:51 +00:00
parent 5594c4fbc8
commit ea0a3cb5ba

View file

@ -39,7 +39,7 @@ target_link_libraries(common2 PUBLIC
)
file(RELATIVE_PATH ROOT_PATH ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR})
if (NOT DEFINED ${ROOT_PATH})
if ("${ROOT_PATH}" STREQUAL "")
# if the 2 paths are the same
set(ROOT_PATH "./")
endif()