diff --git a/idl2library.cmake b/idl2library.cmake index 159d263..6bdb4d3 100644 --- a/idl2library.cmake +++ b/idl2library.cmake @@ -144,7 +144,7 @@ function(idl2library) unset(${current_idl_target}_ABSPATH) message(WARNING "Already created a target for ${current_idl_target}.. Skipping") break() - endif(${SEARCH_INDEX} GREATER -1) + endif(TARGET ${current_idl_target}) # Second duplicate target check if(TARGET ${current_idl_target})