Set only ecl_LIBRARIES and nothing else for ecl.

This commit is contained in:
Markus Blatt 2018-07-12 10:43:47 +02:00
parent cbd44ff67a
commit 563c053d3a

View File

@ -163,11 +163,8 @@ macro (find_and_append_package_to prefix name)
find_package (${name} ${ARGN_NO_REQUIRED} NO_CMAKE_SYSTEM_PACKAGE_REGISTRY NO_CMAKE_PACKAGE_REGISTRY)
if(TARGET ecl)
# Need to grab from target to enable transitional depends
get_target_property(ecl_INCLUDE_DIRS ecl INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(ecl_LIBRARIES ecl INTERFACE_LINK_LIBRARIES)
get_target_property(ecl_lib ecl LOCATION)
set(ecl_LIBRARIES ecl ${ecl_lib} ${ecl_LIBRARIES})
set(ecl_FOUND 1)
#get_target_property(ecl_INCLUDE_DIRS ecl INTERFACE_INCLUDE_DIRECTORIES)
set(ecl_LIBRARIES ecl)
set(HAVE_ERT 1)
endif()
elseif(_${name}_exempted LESS 0 AND NOT _is_opm)