File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ def package(self):
190190 def package_info (self ):
191191 self .cpp_info .set_property ("cmake_find_mode" , "both" )
192192 self .cpp_info .set_property ("cmake_file_name" , "LibXslt" )
193+ self .cpp_info .set_property ("cmake_additional_variables_prefixes" , ["LIBXSLT" ])
193194 self .cpp_info .set_property ("pkg_config_name" , "none" ) # see the two standalone ones instead
194195
195196 prefix = "lib" if is_msvc (self ) else ""
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 3.15)
22project (test_package LANGUAGES C)
33
44find_package (LibXslt REQUIRED)
5+ if (NOT DEFINED LIBXSLT_INCLUDE_DIR)
6+ message (FATAL_ERROR "LIBXSLT_INCLUDE_DIR variable not defined, expected to be set by Conan-generated CMake files" )
7+ endif ()
8+
59find_package (LibXml2 REQUIRED)
610
711add_executable (${PROJECT_NAME} libxslt_tutorial.c)
You can’t perform that action at this time.
0 commit comments