mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 05:10:10 -05:00
1dd4a9baff
The test added by commit 37bc3400cd (CMakePackageConfigHelpers: Add
generate_apple_platform_selection_file(), 2023-11-03) covers importing
only on macOS, and is specific to the xcframework test case. Add a
dedicated test for `generate_apple_platform_selection_file` that covers
export and import on all platforms.
8 lines
188 B
CMake
8 lines
188 B
CMake
include(apple-common.cmake)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE NEVER)
|
|
find_package(mylib CONFIG REQUIRED)
|
|
|
|
add_executable(myexe src/myexe.c)
|
|
target_link_libraries(myexe PRIVATE mylib)
|