see a178b9c
bash-3.2$ cd -
/Users/clausklein/cmake/cmakelib/test_install/build
bash-3.2$ ninja
[0/1] Re-running CMake...
-- vcpkg is already installed at /Users/clausklein/vcpkg.
-- Running vcpkg install
Detecting compiler hash for triplet x64-osx...
All requested packages are currently installed.
Restored 0 packages from /Users/clausklein/.cache/vcpkg/archives in 2.44 us. Use --debug to see more details.
Total elapsed time: 1.746 s
The package eigen3 provides CMake targets:
find_package(Eigen3 CONFIG REQUIRED)
target_link_libraries(main PRIVATE Eigen3::Eigen)
The package fmt provides CMake targets:
find_package(fmt CONFIG REQUIRED)
target_link_libraries(main PRIVATE fmt::fmt)
# Or use the header-only version
find_package(fmt CONFIG REQUIRED)
target_link_libraries(main PRIVATE fmt::fmt-header-only)
-- Running vcpkg install - done
CMake Error at /Users/clausklein/vcpkg/scripts/buildsystems/vcpkg.cmake:782 (_find_package):
Found package configuration file:
/Users/clausklein/cmake/cmakelib/install/share/myproj_header_only_lib/myproj_header_only_libConfig.cmake
but it set myproj_header_only_lib_FOUND to FALSE so package
"myproj_header_only_lib" is considered to be NOT FOUND. Reason given by
package:
The following imported targets are referenced, but are missing:
myproj::project_options myproj::project_warnings
Call Stack (most recent call first):
CMakeLists.txt:45 (find_package)
-- Configuring incomplete, errors occurred!
See also "/Users/clausklein/cmake/cmakelib/test_install/build/CMakeFiles/CMakeOutput.log".
See also "/Users/clausklein/cmake/cmakelib/test_install/build/CMakeFiles/CMakeError.log".
FAILED: CMakeFiles/impl-Debug.ninja build-Debug.ninja CMakeFiles/impl-Release.ninja build-Release.ninja CMakeFiles/impl-RelWithDebInfo.ninja build-RelWithDebInfo.ninja build.ninja
/usr/local/Cellar/cmake/3.22.1/bin/cmake --regenerate-during-build -S/Users/clausklein/cmake/cmakelib/test_install -B/Users/clausklein/cmake/cmakelib/test_install/build
ninja: error: rebuilding 'build.ninja': subcommand failed
bash-3.2$
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too