From ea0a3cb5ba578296454ba0baaf5cedaa061fa873 Mon Sep 17 00:00:00 2001 From: Andrea Odetti Date: Thu, 4 Feb 2021 10:12:51 +0000 Subject: [PATCH] Fix string comparison in cmake. Signed-off-by: Andrea Odetti --- source/frontends/common2/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/frontends/common2/CMakeLists.txt b/source/frontends/common2/CMakeLists.txt index 8028b16b..ac55599d 100644 --- a/source/frontends/common2/CMakeLists.txt +++ b/source/frontends/common2/CMakeLists.txt @@ -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()