We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 296deae commit d41f805Copy full SHA for d41f805
cmake/ecwam_fetchcontent_field_api.cmake
@@ -14,10 +14,10 @@ set(clone_field_api TRUE)
14
if(field_api_FOUND)
15
cmake_path(RELATIVE_PATH field_api_DIR BASE_DIRECTORY ${CMAKE_BINARY_DIR} OUTPUT_VARIABLE path_var)
16
cmake_path(GET path_var PARENT_PATH parent_path)
17
- string(FIND ${parent_path} "../" result_var)
+ string(FIND ${parent_path} "_deps" result_var)
18
19
# 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)
+ string(COMPARE NOTEQUAL ${result_var} "-1" clone_field_api)
21
endif()
22
23
if( clone_field_api )
0 commit comments