Hi, I following the following steps to compile gtest.
https://code.google.com/p/tonatiuh/wiki/GoogleTest
But the following output shows that it uses the default compiler on
Mac OS X. I want to use some other compiler. Does anybody know how to
instruct cmake to do so? Thanks.
CMake really leaves the decision when to recompile something to the
backend, i.e. GNU Make, Xcode, Visual Studio, ninja etc. It merely
defines dependencies and then lets the actual build tool handle the
rest, and most of them choose to use simple time-stamps instead of
Although GNU Make
Again, using ccache solves this much more elegantly. And calling md5sum
twice is also not very nice...
I'm not sure ccache replaces hash. My understanding is that ccache
speed up individual compilation, but all the targets that depends on
it are still compiled. With hash, a file is checked
You miss the point. If CMake wanted to offer hash-based checking, it
would need to do so for *all* backends, not just GNU Make. Good look
implementing that hack in Visual Studio or Xcode...
I get your point that there is not an easy to do content based
dependency (hash as an approximation) for
o Makepp will not recompile if only comments or whitespace in
C/C++ sources have changed. This is especially important for header
files which are automatically generated by other programs and are
included in many modules. Even if the date has changed because the
file was remade,
The offending line is this.
/tmp/$/build$ grep -H -n '/tmp/$/src/tutorial.cpp'
CMakeFiles/tutorial.exe.dir/build.make
CMakeFiles/tutorial.exe.dir/build.make:53:CMakeFiles/tutorial.exe.dir/tutorial.cpp.o:
/tmp/$/src/tutorial.cpp
This is obviously a bug in cmake but not a bug in make, as special
andreas@warnemuende /tmp/$/foo % cat main.cpp
int main()
{
return 0;
}
andreas@warnemuende /tmp/$/foo % cat CMakeLists.txt
add_executable(foo main.cpp)
Can you try that on your side to see wether it works?
The error still exits.
/tmp/$/foo_build$ cmake ../foo
-- The C compiler
Hi,
I use the following command to generate the pdf file from cmake
manpage. But the pdf file does not have bookmarks. Does anybody know a
way to generated the manual in pdf with bookmarks and possibly
hyperlinks?
man -t $f | ps2pdf - $f.pdf
--
Regards,
Peng
--
Powered by
$ docbook2pdf cmake-help.docbook
I got error message like the following on ubuntu.
openjade:/home/pengy/cmake-help.docbook:13:14:E: end tag for
itemizedlist which is not finished
openjade:/home/pengy/cmake-help.docbook:21:14:E: end tag for
itemizedlist which is not finished
Hi,
I just want Hello World! to be shown and everything else be
suppressed. -Wno-dev seems not relevant. I don't find other options
seem to be useful in the manual. In case I miss anything in the
manual, is there an option to suppress these messages? Thanks!
Hi,
The following directory has 'cmake ../src1' run before. I get the
following error when I run the following command. One way to solve the
problem is to run rm -rf *, but I'm wondering if there is a way to
force cmake to run even when the source directory changes. I don't see
such a command
:42 PM, Peng Yu pengyu...@gmail.com wrote:
Hi,
I just want Hello World! to be shown and everything else be
suppressed. -Wno-dev seems not relevant. I don't find other options
seem to be useful in the manual. In case I miss anything in the
manual, is there an option to suppress these messages
Hi,
The following command output shows that when I touch a source without
changing the content, the source are compiled and linked, which is a
waste.
This post shows how to use the checksum to decide whether a file is
changed or not, if changed then update target. This feature seems to
be
Hi,
I have the following example copied from the cmake Tests/Tutorial
directory. cmake works fine.
/tmp/xxx/src$ cat.sh *
== CMakeLists.txt ==
cmake_minimum_required (VERSION 2.6)
project (Tutorial)
# The version number.
set (Tutorial_VERSION_MAJOR 1)
set (Tutorial_VERSION_MINOR 0)
#
14 matches
Mail list logo