John LaGrone wrote
> cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
> project(ex1)
> find_package(foo REQUIRED)
> add_executable(ex1.x ex1.c)
> target_link_libraries(ex1.x foo)
Just check that library exists already:
if(NOT TARGET foo)
find_package(foo REQUIRED)
endif()
--
View this mess
I am attempting to use ExternalDependencies_Add with the last Protobuf
version (v3.0.0) which is in alpha3 (I'm using the master branch
actually)[1].
If you don't already know: contrary to previous Protobuf version, v3.x
provides
cmake scripts (and also makes CMake's FindProtobuf module unusuable i
For some reason, all the tar.gz packages on cmake.org are being downloaded
by google chrome as unzipped tar's (though the .tar.gz extension is
preserved). I only see this behavior with chrome and cmake.org. If I use
firefox, or if I download a tar.gz from somewhere else (the CMake github
"release
Hello,
You don't seem to tell cmake what executable you want and what sources
it is made up of. Take a look at the 'add_executable' and 'add_library'
commands. To create an executable from the sources, you may want to do
something like: add_executable(test01 test01.cc)
And for the library: add_lib
On 07/14/2015 12:57 AM, Andrew Maclean wrote:
> This patch fixes this warning when building CMake from the master:
> "WARNING: 'default' html theme has been renamed to 'classic'.
Applied with slight tweaks:
Utilities/Sphinx: Use 'classic' theme for Sphinx >= 1.3
http://cmake.org/gitweb?p=cmake.
Most of the variables that have a per-config variation on the name end
with "_" ( see the page documenting CMake variables, and
search it for "config" to get a sense of which variables these are...
http://www.cmake.org/cmake/help/v3.3/manual/cmake-variables.7.html )
-- s, if you do prepare any
Hi list,
I have a project that consists of several subdirectories. For example:
project-dir
+- component1
| +- src
| +- include-dir1
| +- include-dir2
+- component2
Let's say I want "component2" to add "include-dir1" and "include-dir2"
from "component1" as include directories without "compone
It's just something you can't change without wiping the build tree
entirely. It should probably actually produce an error or warning of
some sort to avoid confusion such as this...
D
On Tue, Jul 14, 2015 at 11:01 AM, Paul Smith wrote:
> We have a situation where people are sometimes wanting to
We have a situation where people are sometimes wanting to switch between
different generators: from Xcode to Unix Makefiles, or from Visual
Studio 2010 to Visual Studio 2012, etc.
If they have an already-configured workspace then run "cmake -G" with a
different generator, it appears to be a no-op:
I just wanted to close out this thread. The problem turned out to be DOS
line endings in the wx-config file. The following line in the wxWidgets-
3.0.2/buildgtk/lib/wx/config directory fixed the problem.
dos2unix inplace-gtk2-unicode-3.0 inplace-gtk2-unicode-3.0
Thanks for your help.
Bob
--
Hello,
I'm trying to configure my own library (called "libtrace") to a test file I
made.
My source library contains the following files:
libtrace.h -- Header file for the libtrace library.
libtrace.cc -- Source file for the libtrace library.
test01.cc -- A test file that uses libtrace.
CMakeLists
Hi!
i just want to get coverage information from the configure step itself
to find uncovered cmake makros and scripts.
The --trace option seems to be the way to do it.
is there any tool/script available to get these information in a good report?
BEST solution would be something like lgov or govr
12 matches
Mail list logo