Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct append of -std to CXX flags #46

Merged
merged 1 commit into from
Sep 8, 2018
Merged

Conversation

mqudsi
Copy link
Contributor

@mqudsi mqudsi commented Apr 4, 2018

The previous approach, in the presence of existing CXX flags, resulted
in a broken CMAKE_CXX_FLAGS value with a ; in the middle. The
canonical way of adding a compile option is to use the cmake function
add_compile_options, which is available from 2.8.12 onwards.

If you need something compatible with cmake 2.8.11 and prior, you can
use add_definitions(-std=c++0x) instead.

The previous approach, in the presence of existing CXX flags, resulted
in a broken CMAKE_CXX_FLAGS value with a `;` in the middle. The
canonical way of adding a compile option is to use the cmake function
`add_compile_options`, which is available from 2.8.12 onwards.

If you need something compatible with cmake 2.8.11 and prior, you can
use `add_definitions(-std=c++0x)` instead.
mqudsi added a commit to mqudsi/nvim-config that referenced this pull request May 15, 2018
mqudsi added a commit to mqudsi/nvim-config that referenced this pull request Aug 12, 2018
CtrlP is no longer maintained [0] [1] [2] and was already broken. It has
a few critical faults by design that we do not have with our custom
provider. Namely:

* It is strictly depth-first search,
* It does not have a means of automatically excluding build artifact
  directories,
* The two combined mean that if it encounters a build directory with a zillion
  files, it takes FOREVER to find the match we were looking for (which is
  obviously not in the build directory),
* It builds the file list only once, so it cannot match files that were created
  during the same session,

0: nixprime/cpsm#46
1: nixprime/cpsm#47
2: nixprime/cpsm#50
@nixprime nixprime merged commit d5e46f1 into nixprime:master Sep 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants