-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#14427) libxml2: fix CMake vars in CMakeDeps & bump icu
* fix CMake vars * bump icu * reduce path size in test package
- Loading branch information
Showing
10 changed files
with
66 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 0 additions & 15 deletions
15
recipes/libxml2/all/test_cmake_module_package/CMakeLists.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
cmake_minimum_required(VERSION 3.12) | ||
project(test_package LANGUAGES C) | ||
|
||
find_package(LibXml2 REQUIRED MODULE) | ||
|
||
add_executable(${PROJECT_NAME} ../test_package/test_package.c) | ||
target_link_libraries(${PROJECT_NAME} PRIVATE LibXml2::LibXml2) | ||
|
||
# Test whether variables from https://cmake.org/cmake/help/latest/module/FindLibXml2.html | ||
# are properly defined in conan generators | ||
set(_custom_vars | ||
LibXml2_FOUND # since CMake 3.14 | ||
LIBXML2_FOUND # until CMake 3.14 | ||
LIBXML2_INCLUDE_DIR | ||
LIBXML2_INCLUDE_DIRS | ||
LIBXML2_LIBRARIES | ||
LIBXML2_DEFINITIONS | ||
LIBXML2_VERSION_STRING | ||
) | ||
foreach(_custom_var ${_custom_vars}) | ||
if(DEFINED _custom_var) | ||
message(STATUS "${_custom_var}: ${${_custom_var}}") | ||
else() | ||
message(FATAL_ERROR "${_custom_var} not defined") | ||
endif() | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(test_package C) | ||
project(test_package LANGUAGES C) | ||
|
||
find_package(libxml2 CONFIG REQUIRED) | ||
find_package(libxml2 REQUIRED CONFIG) | ||
|
||
add_executable(${PROJECT_NAME} test_package.c) | ||
target_link_libraries(${PROJECT_NAME} LibXml2::LibXml2) | ||
target_link_libraries(${PROJECT_NAME} PRIVATE LibXml2::LibXml2) |
18 changes: 0 additions & 18 deletions
18
recipes/libxml2/all/test_v1_cmake_module_package/CMakeLists.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(test_package) | ||
|
||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
conan_basic_setup(TARGETS) | ||
|
||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../test_module_package | ||
${CMAKE_CURRENT_BINARY_DIR}/test_module_package) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,8 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(test_package C) | ||
project(test_package) | ||
|
||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
conan_basic_setup(TARGETS) | ||
|
||
find_package(LibXml2 REQUIRED) | ||
message("LIBXML2_FOUND: ${LIBXML2_FOUND}") | ||
message("LIBXML2_INCLUDE_DIR: ${LIBXML2_INCLUDE_DIR}") | ||
message("LIBXML2_INCLUDE_DIRS: ${LIBXML2_INCLUDE_DIRS}") | ||
message("LIBXML2_LIBRARIES: ${LIBXML2_LIBRARIES}") | ||
message("LIBXML2_LIBRARY: ${LIBXML2_LIBRARY}") | ||
message("LIBXML2_DEFINITIONS: ${LIBXML2_DEFINITIONS}") | ||
message("LIBXML2_VERSION_STRING: ${LIBXML2_VERSION_STRING}") | ||
|
||
add_executable(${PROJECT_NAME} ../test_package/test_package.c) | ||
target_link_libraries(${PROJECT_NAME} LibXml2::LibXml2) | ||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../test_package | ||
${CMAKE_CURRENT_BINARY_DIR}/test_package) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters