In CMakeCache.txt, for a Visual Studio based build where C and/or C++
has been enabled:
//CXX compiler
CMAKE_CXX_COMPILER:FILEPATH=C:/Program Files (x86)/Microsoft Visual
Studio 11.0/VC/bin/cl.exe
//C compiler
CMAKE_C_COMPILER:FILEPATH=C:/Program Files (x86)/Microsoft Visual
Studio 11.0/VC/b
Am I correct in stating that ExternalProject_Add() cannot completely
replace find_package()?
e.g. if I point ExternalProject_Add() to download a software package
(which uses a CMake build system and exports its targets and provides
a -config.cmake file) the only thing this does is to provide
a tar
Thanks for your suggestions, J Decker and David. I find both approaches
(using registry entry paths as hints to find_program or using
$ENV{VS110COMNTOOLS}) quite interesting. However, I'd rather not have to
write such code for each compiler version separately, in my CMakeLists.
Also I have the
Hi all-
I'm building an executable using the standard command:
add_executable(MyExe a.c b.c)
I'm adjusting the CMAKE_EXE_LINKER_FLAGS to emit a mapfile, and it works.
If I delete the mapfile, though, performing an incremental build doesn't
regenerate the mapfile. This makes sense, since I have
Figured out the answer on my own. The problem was how I was specifying the
file names on the depends. Once I added the directory to the output file
and used the directory on subsequent dependencies, this started working the
way I expected.
Rick
On Thu, May 8, 2014 at 5:39 PM, Rick McGuire wro
There's something I'm not understanding about custom commands. I have need
to run a couple of custom commands during our build that generated some
output files. They are specified like this:
# Build the rexx.img file
add_custom_command(OUTPUT rexx.img
COMMAND ./rexximage
DE
How about:
if(EXISTS "$ENV{VS110COMNTOOLS}../../VC")
get_filename_component(VC11_DIR "$ENV{VS110COMNTOOLS}../../VC"
ABSOLUTE)
endif()
if(EXISTS "$ENV{VS120COMNTOOLS}../../VC")
get_filename_component(VC12_DIR "$ENV{VS120COMNTOOLS}../../VC"
ABSOLUTE)
endif()
message(S
We need to find a file named "vcvarsall.bat", located in the
installation directory of Visual C++, which may have one of the
following path names, for example:
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\"
"M:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\"
"C:\Program F
I have a machine I'm trying to compile some code on, and CMake is apparently
being smart and is inserting -Wl,-Bdynamic around some of the libraries from
the CMAKE_CXX_IMPLICIT_LINK_LIBRARIES variable.
Is there a way to stop that? Or is there a reason why it is doing that?
Thanks,
Clint
--
This seems to be a warning only as cmake still works.
"/usr/bin/cmake: /usr/local/lib/libcurl.so.4: no version information
available (required by /usr/bin/cmake)"
How to fix this error? I installed latest libcurl and reinstalled cmake.
--
*Dzung Nguyen*
PhD Student
Electrical Engineering and
Somehow, I corrupted the visual studio CMake macro.. I have no idea how...
However, I cant figure out how to completely remove it, and then have cmake
re-install it
I have been googling on and off for 2-3 weeks with no success
Thanks in advance,
Scott
--
Powered by www.kitware.com
Please ke
yes basically
INSTALL( PROGRAMS ) keeps file permissions instead of INSTALL( FILES
... ) which loses file permisisons
You don't nessiciarly have to run it by hand, can add a target that could
be built...
There is a little more work associated with release APK
---
if( CMAKE
So basically I am thinking of doing this:
1. Build my NDK libraries using the android cmake toolchain file as if
I'm just building normal C++ libraries on Linux with the CMake
provided makefiles in the binary output directory.
2. Create a Java project using the 'android create project' tool and
ch
Thanks a lot Petr, that solution works perfectly.
Regards,
--
Tarjei
On 8 May 2014 11:30, Petr Kmoch wrote:
> Hi Tarjei.
>
> add_custom_command() has a DEPENDS argument where you can list any number
> of files which will act as dependencies for the custom command. So you
> could extend your cu
Hi Tarjei.
add_custom_command() has a DEPENDS argument where you can list any number
of files which will act as dependencies for the custom command. So you
could extend your custom command like this:
add_custom_command(
OUTPUT ... #as before
COMMAND ... #as before
MAIN_DEPENDENCY a.idl
DE
In our project we are generating code from CORBA IDL files by adding a
custom command that generates C++ code from the IDL files and a library
target that depends on the generated output. This works as expected,
however IDL supports include directives which are (naturally) not picked up
as dependen
16 matches
Mail list logo