Fix string comparison in cmake.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
This commit is contained in:
parent
5594c4fbc8
commit
ea0a3cb5ba
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue