From 51136f6541be93d0674c19aedd1af53fa99fa2e1 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 1 Nov 2017 16:23:21 -0400 Subject: [PATCH] cmake: Fix accidental version dependency break (issue #2293) --- cmake/cef_macros.cmake.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/cef_macros.cmake.in b/cmake/cef_macros.cmake.in index fe58ee19a..8cb25ba53 100644 --- a/cmake/cef_macros.cmake.in +++ b/cmake/cef_macros.cmake.in @@ -102,8 +102,8 @@ macro(COPY_FILES target file_list source_dir target_dir) get_filename_component(target_name ${FILENAME} NAME) set(target_file ${target_dir}/${target_name}) - string(FIND ${source_file} "$" pos) - if(pos GREATER_EQUAL 0) + string(FIND ${source_file} "$" _pos) + if(NOT ${_pos} EQUAL -1) # Must test with an actual configuration directory. string(REPLACE "$" "Release" existing_source_file ${source_file}) if(NOT EXISTS ${existing_source_file})