Re: [CMake] Is there a better way to retrieve content from a remote zip file?

2016-04-28 Thread Craig Scott
You may find the technique described at the following link useful (also based on ExternalProject, but slightly different take on how it's used): https://crascit.com/2015/07/25/cmake-gtest/ On Fri, Apr 29, 2016 at 1:58 AM, Chuck Atkins wrote: > This looks well suited to ExternalProject. Just g

[CMake] ExternalProject_Add + imported targets: no rule to make yourlibrary.so

2016-04-28 Thread SnakE
Hello, I think I've found a bug in the ninja generator. I wonder if it's fixed already in a more recent cmake version. I'm using cmake 3.3.1. My project uses ExternalProject_Add() to pull some pre-built binaries from an internal repository in some configurations. In other configurations however t

[CMake] default release build flags

2016-04-28 Thread Burlen Loring
Hi Guys, I'd like to discuss changing the defaults of CMAKE_C/CXX_FLAGS_RELEASE on gcc, and potentially gcc like compilers such as clang and intel. Currently the default is "-O3 -DNDEBUG". I would like to discuss changing this to "-O3 -march=native -mtune=native -DNDEBUG". This change will e

Re: [CMake] Is there a better way to retrieve content from a remote zip file?

2016-04-28 Thread Chuck Atkins
This looks well suited to ExternalProject. Just give it an empty configure and build steps and then have the install step perform the copy: include(ExternalProject) if(CMAKE_SIZEOF_VOID_P EQUAL 8) set(3rdParty_SUBDIR x64) else() set(3rdParty_SUBDIR x86) endif() ExternalProject_Add( 3rdParty

[CMake] Is there a better way to retrieve content from a remote zip file?

2016-04-28 Thread Lee Butler
I am looking for a better way to do something than having a sequence of "if (NOT EXISTS)" statements. My package being built depends on some external libraries and headers, that are available in a zip file on an external website. So for example: zlib.h,zlib.dll and zlib.lib are (along with o

[CMake] CTest/CDash + DynamicAnalysis (Valgrind MemCheck)

2016-04-28 Thread Volker Daum
Hi CMake/CTest users and Developers. I actually have a question about CTest and hope this is the right list to ask it. I am confused by CTest behavior when doing dynamic analysis with valgrind (MemCheck). The issue I am having is that CTest does not output test results in the generated XML i