Skip to content

Commit d41f805

Browse files
committed
FIELD_API: fix fetchcontent mechanism so it isn't triggered if field_api is in ifs-source/contrib
1 parent 296deae commit d41f805

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: cmake/ecwam_fetchcontent_field_api.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ set(clone_field_api TRUE)
1414
if(field_api_FOUND)
1515
cmake_path(RELATIVE_PATH field_api_DIR BASE_DIRECTORY ${CMAKE_BINARY_DIR} OUTPUT_VARIABLE path_var)
1616
cmake_path(GET path_var PARENT_PATH parent_path)
17-
string(FIND ${parent_path} "../" result_var)
17+
string(FIND ${parent_path} "_deps" result_var)
1818

1919
# If field_api is found but was not cloned by ecWAM, clone_field_api is set to FALSE
20-
string(COMPARE EQUAL ${result_var} "-1" clone_field_api)
20+
string(COMPARE NOTEQUAL ${result_var} "-1" clone_field_api)
2121
endif()
2222

2323
if( clone_field_api )

0 commit comments

Comments
 (0)