Hi Philip.
You don't need one. This is a perfectly valid piece of CMake code:
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
else()
... do something ...
endif()
Of course, the comment can be put in there, but you don't need any commands
between an if() and else() (or between any other pair of start-
Indeed,
```
get_target_property(out ${netCDF_LIBRARIES} LOCATION)
message(${out})
```
gives
```
/usr/lib/x86_64-linux-gnu/libnetcdf.so.7.3.0
```
This value appears to be set in the CMake export file
```
/usr/lib/x86_64-linux-gnu/cmake/netCDF/netCDFTargets-none.cmake
```
What does this mean?
--Nico
On Wednesday, September 02, 2015 20:28:35 Nico Schlömer wrote:
> Curiously,
> ```
> message(${ZLIB_LIBRARIES})
> message(${netCDF_LIBRARIES})
> ```
> yields
> ```
> /usr/lib/x86_64-linux-gnu/libz.so
> netcdf
> ```
> Hm, I would have expected it the other way around. :)
maybe "netcdf" is the name
Curiously,
```
message(${ZLIB_LIBRARIES})
message(${netCDF_LIBRARIES})
```
yields
```
/usr/lib/x86_64-linux-gnu/libz.so
netcdf
```
Hm, I would have expected it the other way around. :)
--Nico
On Wed, Sep 2, 2015 at 10:17 PM Alexander Neundorf
wrote:
> On Wednesday, September 02, 2015 08:22:08 N
On Wednesday, September 02, 2015 08:22:08 Nico Schlömer wrote:
> > it uses -l if the full path is not know or if the full path is one of the
> > system
> library dirs
>
> Hm, that sound a little weird. Using `-l` appears to delegate the library
> finding to the linker although CMake has already do
Hi CMake Experts!
Does CTest support colored output?
I'm using CMake version 3.3.1. I got colored output for the build part
(compilation) while using make. However, when I do "make test" or "ctest" I
don't get colored output.
Does the colored output for the tests have to be activated somewhere?
Recently I have wondered if it would be useful if the Visual Studio generators
in CMake were refactored somewhat (to what degree, I am not sure). Not that I
have time to work on it right now, and I have not studied this section of CMake
code in detail, so I may be a little off base with some of
Hi there,
Does CMake have a no-op command, like 'pass' in Python or ';' in C? I
sometimes want to create a construct like this:
IF(CMAKE_SYSTEM_NAME STREQUAL "Windows")
# Under Windows we do nothing because blah blah blah
...no-op...
ELSE()
...do something...
ENDIF(CMAKE_SYSTEM_NAME
Hi,
The problem with /MP in cl.exe, /CGTHREADS in link.exe, and /MAXCPUCOUNT in
msbuild.exe is they don't communicate with each other, potentially leading to
massive over/undersubscription of the system. I would love it if Microsoft
could get this mishmash cleaned up somehow so they can all co
On Wed, Sep 2, 2015 at 8:40 AM, Yaron Cohen-Tal wrote:
> Thanx, it worked!
>
> You might even be surprised that it worked without the "TO_NATIVE_PATH" - my
> Windows (8.1) seems to know how to handle "/" in the "PATH"! Nevertheless
> I'll use it, to be on the safe side.
>
I'm not surprised. It wou
Thanx, it worked!
You might even be surprised that it worked without the "TO_NATIVE_PATH" -
my Windows (8.1) seems to know how to handle "/" in the "PATH"!
Nevertheless I'll use it, to be on the safe side.
On Wed, Sep 2, 2015 at 11:15 AM, Roger Leigh wrote:
> On 02/09/2015 08:40, Yaron Cohen-Ta
Hi,
Thanks for the quick reply. I enabled asm language and it now links.
Apologies for the noob question;
Thanks Nick
From: Hendrik Sattler [mailto:p...@hendrik-sattler.de]
Sent: Wednesday, 2 September 2015 8:13 PM
To: ngeorgh...@iprimus.com.au; cmake@cmake.org
Subject: Re: [CMak
Hi,
is the netcdf find module defining an imported target? AFAIK, imported targets
are always linked by full path. Else the rules already mentioned apply.
HS
Am 28. August 2015 10:23:47 MESZ, schrieb "Nico Schlömer"
:
>Hi everyone,
>
>I'm curious about when CMake decides to link a library by
Hi,
why don't you just add the asm file to your add_library() call and enable the
ASM language?
HS
Am 2. September 2015 09:21:11 MESZ, schrieb Nick Georghiou
:
>Hi,
>
>
>
>I have the custom command provided below which successfully creates
>mydll.obj in the correct intermediate directory. Ho
> it uses -l if the full path is not know or if the full path is one of the
> system
library dirs
Hm, that sound a little weird. Using `-l` appears to delegate the library
finding to the linker although CMake has already done that job. If one was
overly cautious, one could ask questions like: Wha
On 02/09/2015 08:40, Yaron Cohen-Tal wrote:
Hi,
My project is a shared library, and my tests are linked to that shared
library. When I try to run the tests, they fail because they can't find
the DLL of the project. The "CMakeLists.txt" of the tests is in a
different folder ("test/") than that of
Hi,
My project is a shared library, and my tests are linked to that shared
library. When I try to run the tests, they fail because they can't find the
DLL of the project. The "CMakeLists.txt" of the tests is in a different
folder ("test/") than that of the shared lib ("src/"), and therefore
they'r
Hi,
I have the custom command provided below which successfully creates
mydll.obj in the correct intermediate directory. However the LinkObjects
property of the custom command within Visual Studio 2013 is set to false and
therefore the object file is not linked. Upon inspection of the CMake cod
18 matches
Mail list logo