CPM.cmake Install Fails Build with "-Og: not found" #164
Unanswered
xanderdunn
asked this question in
Q&A
Replies: 3 comments 1 reply
-
Note that I did not see this error when I copied the 1.1.0 source and built with this:
Same GCC version: 10.3.0. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Does include(cmake/CPM.cmake)
CPMAddPackage(
NAME matplotplusplus
GITHUB_REPOSITORY alandefreitas/matplotplusplus
GIT_TAG v1.1.0
)
option(CPM_USE_LOCAL_PACKAGES "Try `find_package` before downloading dependencies" ON) work? There might be something wrong with this function. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Setting it to "O0" here or to just nothing might solve the problem, but "-Og" should also work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Ubuntu 18.04
GCC 10.3.0
cmake 3.20.1
CPM.cmake 0.32.2
I installed CPM.cmake with:
I added matplotplusplus to my CMakeLists.txt with:
Now, when I attempt to build my project I get:
Where is the
-Og
flag coming from, and how might I fix this build? I see it listed here as optimizing for the debug experience. Was it possibly removed in a more recent version of GCC?Beta Was this translation helpful? Give feedback.
All reactions