Feature/allow nondefault install prefix#86
Open
alex-che wants to merge 2 commits intojpbarrette:masterfrom
Open
Feature/allow nondefault install prefix#86alex-che wants to merge 2 commits intojpbarrette:masterfrom
alex-che wants to merge 2 commits intojpbarrette:masterfrom
Conversation
This was referenced Oct 31, 2020
|
sorry,it still error [main] Building folder: examples
[main] Configuring project: examples
[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=C:\Windows\w64devkit\bin\gcc.exe -DCMAKE_CXX_COMPILER:FILEPATH=C:\Windows\w64devkit\bin\g++.exe -SC:/curlpp-0.8.1/examples -Bc:/curlpp-0.8.1/examples/build -G "Unix Makefiles"
[cmake] Not searching for unused variables given on the command line.
[cmake] CMake Warning (dev) in CMakeLists.txt:
[cmake] No project() command is present. The top-level CMakeLists.txt file must
[cmake] contain a literal, direct call to the project() command. Add a line of
[cmake] code such as
[cmake]
[cmake] project(ProjectName)
[cmake]
[cmake] near the top of the file, but after cmake_minimum_required().
[cmake]
[cmake] CMake is pretending there is a "project(Project)" command on the first
[cmake] line.
[cmake] This warning is for project developers. Use -Wno-dev to suppress it.
[cmake]
[cmake] CMake Warning (dev) in CMakeLists.txt:
[cmake] cmake_minimum_required() should be called prior to this top-level project()
[cmake] call. Please see the cmake-commands(7) manual for usage documentation of
[cmake] both commands.
[cmake] This warning is for project developers. Use -Wno-dev to suppress it.
[cmake]
[cmake] -- Checking for module 'curlpp'
[cmake] --
[cmake] CMake Error at C:/Program Files/CMake/share/cmake-3.26/Modules/FindPkgConfig.cmake:607 (message):
[cmake] A required package was not found
[cmake] Call Stack (most recent call first):
[cmake] C:/Program Files/CMake/share/cmake-3.26/Modules/FindPkgConfig.cmake:829 (_pkg_check_modules_internal)
[cmake] CMakeLists.txt:3 (pkg_check_modules)
[cmake]
[cmake]
[cmake] -- Configuring incomplete, errors occurred!
[proc] The command: "C:\Program Files\CMake\bin\cmake.EXE" --no-warn-unused-cli -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_C_COMPILER:FILEPATH=C:\Windows\w64devkit\bin\gcc.exe -DCMAKE_CXX_COMPILER:FILEPATH=C:\Windows\w64devkit\bin\g++.exe -SC:/curlpp-0.8.1/examples -Bc:/curlpp-0.8.1/examples/build -G "Unix Makefiles" exited with code: 1 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These changes allow curlpp to be installed to non-default location.
E.g., by using CMAKE_INSTALL_PREFIX configuration variable.
Currently, if I use non-default install prefix for curlpp, then curlpp examples could not be build.
With the proposed changes, I could build curlpp examples using PKG_CONFIG_PATH or CMAKE_PREFIX_PATH pointing to the directory containing curlpp.pc file.
The changes should also fix #68 .