the version changed).
Unfortunately, it seems that add_custom_command will delete its output
before calling the command. As a result the version.cpp's dependancies
are always bult.
Is there a way to prevent that deletion ?
Thanks
--
-
Alain Miniussi
DSI, Pôles Calcul et Genie Log.
Tél
On 13/09/2017 12:49, Nils Gladitz wrote:
[...]
Do you have a minimal reproducible example for that behaviour?
e.g. given:
cmake_minimum_required(VERSION 2.8.0)
project(Foo NONE)
file(WRITE foo/CMakeLists.txt "add_executable()")
add_subdirectory(foo)
I get:
CMake
On 13/09/2017 11:16, Nils Gladitz wrote:
On 13.09.2017 10:52, Alain Miniussi wrote:
Hi,
Is there a way, when printing CMake error, to get the exact location
of the CMakeLists.txt ?
For example, right now, when I have:
CMake Error at CMakeLists.txt:14 (add_executable):
I need to scan
Hi,
Is there a way, when printing CMake error, to get the exact location of
the CMakeLists.txt ?
For example, right now, when I have:
CMake Error at CMakeLists.txt:14 (add_executable):
I need to scan all my CMakeLists.txt (~200) to check which one has
add_executable at line 14.
Thanks
Hi,
I am trying to fix FindHDF5.cmake (support for HDF5_ROOT is broken, only
environment variable is supported and it will be eventually probably ignored in
find_program).
To that end, I'd like to copy it in my source tree and use that version instead
of the one in /usr/shared/cmake.
On 08/02/2016 18:43, Alain Miniussi wrote:
Hi,
I am trying to fix FindHDF5.cmake (support for HDF5_ROOT is broken, only
environment variable is supported and it will be eventually probably ignored in
find_program).
To that end, I'd like to copy it in my source tree and use that version
Hi,
I tried using try_compile, and, as usual, fail to understand how it's supposed
to work (2.8.12).
The documentation says:
Some extra flags that can be included are, INCLUDE_DIRECTORIES,
LINK_DIRECTORIES, and LINK_LIBRARIES.
but does not mention where they can be included (none of the two
On 11/09/2015 10:53, Nico Schlömer wrote:
Hi everyone,
I see from the CMake docs [1] that the recommended way for using MPI is to call
`find_package(MPI)` and set the linker and include flags appropriately. On the
other hand, I see from the OpenMPI specs [2] that
>
The Open MPI team
Hi,
I am experiencing a problem related with dependencies on fortran mod
files. Basically, the make -j it's failing with:
make[2]: *** No rule to make target `dsfdm3d/inc/modacqui.mod', needed
by `dsfdm3d/src/CMakeFiles/dsfdm_sp-exe.dir/main.f90.o'. Stop.
mod file are generated as a side