Closed dev-zero closed 9 years ago
What's your directory structure? Is your build directory a sub directory of your directory or is it just within the source tree itself?
Also; it's showing 0 files; have you configured the project yet (run cmake
for the first time?)
The latest release, version 0.4.3; should help with this @dev-zero
I'm going to give this two more days then close this issue.
After updating to the last commit no commands are available anymore.
My directory structure for a simple project:
.
├── build
│ ├── CMakeCache.txt
│ ├── [...]
│ └── Makefile
├── CMakeLists.txt
└── ex01_duffing.cc
the relevant vim log when doing vim ex01_duffing.cc
(or the CMakeLists.txt
):
[...]
finished sourcing /home/user/.vim/bundle/YouCompleteMe/plugin/youcompleteme.vim
Searching for "/home/user/.vim/bundle/cmake.vim/plugin/**/*.vim"
chdir(/home/user/.vim/bundle/cmake.vim/plugin)
fchdir() to previous dir
sourcing "/home/user/.vim/bundle/cmake.vim/plugin/cmake.vim"
calling function <SNR>30_set_options
calling function <SNR>30_set_options..<SNR>30_setauto
function <SNR>30_set_options..<SNR>30_setauto returning #0
continuing in function <SNR>30_set_options
calling function <SNR>30_set_options..<SNR>30_setauto
function <SNR>30_set_options..<SNR>30_setauto returning #0
continuing in function <SNR>30_set_options
calling function <SNR>30_set_options..<SNR>30_setauto
function <SNR>30_set_options..<SNR>30_setauto returning #0
continuing in function <SNR>30_set_options
calling function <SNR>30_set_options..<SNR>30_setauto
function <SNR>30_set_options..<SNR>30_setauto returning #0
continuing in function <SNR>30_set_options
calling function <SNR>30_set_options..<SNR>30_setauto
function <SNR>30_set_options..<SNR>30_setauto returning #0
continuing in function <SNR>30_set_options
calling function <SNR>30_set_options..<SNR>30_setauto
function <SNR>30_set_options..<SNR>30_setauto returning #0
continuing in function <SNR>30_set_options
calling function <SNR>30_set_options..<SNR>30_setauto
function <SNR>30_set_options..<SNR>30_setauto returning #0
continuing in function <SNR>30_set_options
calling function <SNR>30_set_options..<SNR>30_setauto
function <SNR>30_set_options..<SNR>30_setauto returning #0
continuing in function <SNR>30_set_options
calling function <SNR>30_set_options..<SNR>30_setauto
function <SNR>30_set_options..<SNR>30_setauto returning #0
continuing in function <SNR>30_set_options
calling function <SNR>30_set_options..<SNR>30_setauto
function <SNR>30_set_options..<SNR>30_setauto returning #0
continuing in function <SNR>30_set_options
calling function <SNR>30_set_options..<SNR>30_setauto
function <SNR>30_set_options..<SNR>30_setauto returning #0
continuing in function <SNR>30_set_options
function <SNR>30_set_options returning #0
continuing in /home/user/.vim/bundle/cmake.vim/plugin/cmake.vim
Searching for "autoload/cmake/augroup.vim" in "/home/user/.vim,/home/user/.vim/bundle/YouCompleteMe,/home/user/.vim/bundle/cmake.vim,/home/user/.vim/bundle/mediawiki.vim,/home/user/.vim/bundle/nerdtree,/home/user/.vim/bundle/supertab,/home/user/.vim/bundle/syntastic,/home/user/.vim/bundle/tcomment_vim,/home/user/.vim/bundle/ultisnips,/home/user/.vim/bundle/vim-ebnf,/home/user/.vim/bundle/vim-fugitive,/home/user/.vim/bundle/vim-json,/home/user/.vim/bundle/vim-repeat,/home/user/.vim/bundle/vim-sleuth,/home/user/.vim/bundle/vim-snippets,/home/user/.vim/bundle/vim-surround,/usr/share/vim/vimfiles,/usr/share/vim/vim74,/usr/share/vim/vimfiles/after,/home/user/.vim/bundle/ultisnips/after,/home/user/.vim/after"
Searching for "/home/user/.vim/autoload/cmake/augroup.vim"
Searching for "/home/user/.vim/bundle/YouCompleteMe/autoload/cmake/augroup.vim"
Searching for "/home/user/.vim/bundle/cmake.vim/autoload/cmake/augroup.vim"
chdir(/home/user/.vim/bundle/cmake.vim/autoload/cmake)
fchdir() to previous dir
line 57: sourcing "/home/user/.vim/bundle/cmake.vim/autoload/cmake/augroup.vim"
finished sourcing /home/user/.vim/bundle/cmake.vim/autoload/cmake/augroup.vim
continuing in /home/user/.vim/bundle/cmake.vim/plugin/cmake.vim
calling function cmake#augroup#init
function cmake#augroup#init returning #0
continuing in /home/user/.vim/bundle/cmake.vim/plugin/cmake.vim
finished sourcing /home/user/.vim/bundle/cmake.vim/plugin/cmake.vim
[...]
Can you attach your CMakeLists.txt
file as well as the build/CMakeCache.txt
? This is an interesting edgecase.
Thanks for taking care of this, below are the files as requested.
cmake_minimum_required(VERSION 2.8)
project(comp-phys-chapter1)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wold-style-cast -Wredundant-decls -Wstrict-null-sentinel -Wmissing-noreturn -Woverloaded-virtual -Winit-self -Wunused -Wunused-function -Wshadow -Wwrite-strings -Wfloat-equal -Wconversion -pedantic -Wno-long-long")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -march=native")
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ggdb -pg")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_OPENMP -fopenmp") # enable OpenMP
include_directories(SYSTEM
"${CMAKE_CURRENT_SOURCE_DIR}/../third-party/odeint-v2/include")
add_executable(ex01_duffing ex01_duffing.cc)
# This is the CMakeCache file.
# For build in directory: /home/user/work/uni/comp-phys/chapter01/build
# It was generated by CMake: /usr/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.
########################
# EXTERNAL cache entries
########################
//Path to a program.
CMAKE_AR:FILEPATH=/usr/bin/ar
//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
CMAKE_BUILD_TYPE:STRING=
//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON
//CXX compiler.
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++
//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING=
//Flags used by the compiler during debug builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g
//Flags used by the compiler during release minsize builds.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
//Flags used by the compiler during Release with Debug Info builds.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
//C compiler.
CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc
//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING=
//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g
//Flags used by the compiler during release minsize builds.
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
//Flags used by the compiler during release builds (/MD /Ob1 /Oi
// /Ot /Oy /Gs will produce slightly less optimized but smaller
// files).
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
//Flags used by the compiler during Release with Debug Info builds.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=' '
//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Enable/Disable output of compile commands during generation.
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF
//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/usr/local
//Path to a program.
CMAKE_LINKER:FILEPATH=/usr/bin/ld
//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake
//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=' '
//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Path to a program.
CMAKE_NM:FILEPATH=/usr/bin/nm
//Path to a program.
CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy
//Path to a program.
CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump
//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=comp-phys-chapter1
//Path to a program.
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib
//Flags used by the linker during the creation of dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING=' '
//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=NO
//Flags used by the linker during the creation of static libraries.
CMAKE_STATIC_LINKER_FLAGS:STRING=
//Flags used by the linker during debug builds.
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Path to a program.
CMAKE_STRIP:FILEPATH=/usr/bin/strip
//If true, cmake will use relative paths in makefiles and projects.
CMAKE_USE_RELATIVE_PATHS:BOOL=OFF
//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make. This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
//Value Computed by CMake
comp-phys-chapter1_BINARY_DIR:STATIC=/home/user/work/uni/comp-phys/chapter01/build
//Value Computed by CMake
comp-phys-chapter1_SOURCE_DIR:STATIC=/home/user/work/uni/comp-phys/chapter01
########################
# INTERNAL cache entries
########################
//ADVANCED property for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_BUILD_TOOL
CMAKE_BUILD_TOOL-ADVANCED:INTERNAL=1
//What is the target build tool cmake is generating for.
CMAKE_BUILD_TOOL:INTERNAL=/usr/bin/gmake
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=/home/user/work/uni/comp-phys/chapter01/build
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=2
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=8
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=12
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
//ADVANCED property for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=/usr/bin/ccmake
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Start directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=/home/user/work/uni/comp-phys/chapter01
//Install .so files without execute permission.
CMAKE_INSTALL_SO_NO_EXE:INTERNAL=0
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_LOCAL_GENERATORS:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJDUMP
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/usr/share/cmake
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STRIP
CMAKE_STRIP-ADVANCED:INTERNAL=1
//uname command
CMAKE_UNAME:INTERNAL=/usr/bin/uname
//ADVANCED property for variable: CMAKE_USE_RELATIVE_PATHS
CMAKE_USE_RELATIVE_PATHS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
... but I'm not sure whether this is project specific since other projects of mine have the same problem, for example: https://github.com/dev-zero/quantum3body or https://github.com/dev-zero/moving-target-tsp
Ah, you have trees with this issue; that's a lot more helpful! I'm currently at work; but I should be able to look into this later into the evening (EST).
What version of CMake are you using as well? Also from within your build
directory; do you mind copying and pasting the output of find
?
I have to make a note to add this to the README about reporting bugs.
yeah, you could maybe add a simple template for copy & paste for reporting bugs. Below are the version and the output of find
for the minimal/sample project from before.
~$ cmake --version
cmake version 2.8.12.2
.
./CMakeLists.txt
./ex01_duffing.cc
./build
./build/CMakeFiles
./build/CMakeFiles/CMakeOutput.log
./build/CMakeFiles/2.8.12.2
./build/CMakeFiles/2.8.12.2/CMakeSystem.cmake
./build/CMakeFiles/2.8.12.2/CompilerIdC
./build/CMakeFiles/2.8.12.2/CompilerIdC/CMakeCCompilerId.c
./build/CMakeFiles/2.8.12.2/CompilerIdC/a.out
./build/CMakeFiles/2.8.12.2/CompilerIdCXX
./build/CMakeFiles/2.8.12.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
./build/CMakeFiles/2.8.12.2/CompilerIdCXX/a.out
./build/CMakeFiles/2.8.12.2/CMakeDetermineCompilerABI_C.bin
./build/CMakeFiles/2.8.12.2/CMakeCCompiler.cmake
./build/CMakeFiles/2.8.12.2/CMakeDetermineCompilerABI_CXX.bin
./build/CMakeFiles/2.8.12.2/CMakeCXXCompiler.cmake
./build/CMakeFiles/CMakeTmp
./build/CMakeFiles/cmake.check_cache
./build/CMakeFiles/ex01_duffing.dir
./build/CMakeFiles/ex01_duffing.dir/depend.make
./build/CMakeFiles/ex01_duffing.dir/link.txt
./build/CMakeFiles/ex01_duffing.dir/cmake_clean.cmake
./build/CMakeFiles/ex01_duffing.dir/build.make
./build/CMakeFiles/ex01_duffing.dir/DependInfo.cmake
./build/CMakeFiles/ex01_duffing.dir/flags.make
./build/CMakeFiles/ex01_duffing.dir/progress.make
./build/CMakeFiles/CMakeDirectoryInformation.cmake
./build/CMakeFiles/TargetDirectories.txt
./build/CMakeFiles/progress.marks
./build/CMakeFiles/Makefile2
./build/CMakeFiles/Makefile.cmake
./build/CMakeCache.txt
./build/Makefile
./build/cmake_install.cmake
This is tricky because I can't reproduce the issue myself, but I know what would cause this to happen. I'll push some commits to mute outputs on VimEnter
.
Dude, what's the SHA you're working on @dev-zero?
Sorry for the late reply.
~/.vim/bundle/cmake.vim $ git describe
v0.4.3-4-g4c13ff1
and here is the complete list of extensions (besides pathogen
itself) in case there are known incompatibilities:
cmake.vim
mediawiki.vim
nerdtree
supertab
syntastic
tcomment_vim
ultisnips
vim-ebnf
vim-fugitive
vim-json
vim-repeat
vim-sleuth
vim-snippets
vim-surround
YouCompleteMe
I've identified some of the problems:
*.*pp
, but I mostly use *.{cc,hh}
and also have some projects with other files (python, fortran)build/CMakeCache.txt
must exist already (minor issue, but still)undefined variable b:cmake_binary_dir
when running :CMakeBuild
(or other commands):CMakeClean
I get Ambigous use of user-defined command
These issues I can target more accurately, and looking at the code again and my sample projects it seems like 1 & 2 build this issue.
I'll open issues relating to these before the close of the week, thanks for narrowing that search!
You know @dev-zero, if you think you're up for you; submit a PR and I'd give you commit access :thumbsup:
The release of v0.4.4 should cover your issues @dev-zero.
Lemme know if that happens.
Sorry, but I don't have much time left, reporting bugs is currently the only thing I can do :-(
Anyway, tag v0.4.4 gives me:
Error detected while processing function cmake#augroup#on_file_type..cmake#buffer#has_project:
line 3:
E15: Invalid expression: &l:ft != "cpp" && &l:ft != "c" && &l:ft = "cmake" | return 0 | endif
line 7:
E171: Missing :endif
What version of Vim are you running? I can make that work for specific versions.
And that's okay, time's been short on my side too (took me too long to reply to this issue!).
@dev-zero try master today. Should be fine.
Version 0.5.0 should fix these issues. Re-open if you get more issues, thanks!
Everytime when I open a a file in a project which contains a
build
directory I get:which is quiet annoying. (besides: the only available command I get is CMakeCreateBuild, all others are unavailable)
I installed cmake.vim by cloning to
.vim/bundle/cmake.vim
and it seems to get loaded (viapathogen.vim
)