[CMake] Question on pathes/names of generated lib (CMake 3.5.1, Visual Studio 2015 - x64)

2016-04-13 Thread Martin Maurer
Hi, I am trying to use CMake on a open source project called cryptominisat ( https://github.com/msoos/cryptominisat ) which is initially developed under Linux, but is meanwhile partly ported to Windows. Source can already compiled (with a batch file) and run, but not yet completely with cmake.

Re: [CMake] Unable to download cmake-3.5.1 (a 403 error)

2016-04-13 Thread Bill Hoffman
On 4/13/2016 12:40 PM, Asiga Nael via CMake wrote: Hi, I'm trying to download the file cmake-3.5.1-Darwin-x86_64.dmg but it brings me to a page at public.kitware.com with a 403 error: "Permission Denied You do not have permission to retrieve the URL or link you requested." Is there any mirror

[CMake] Unable to download cmake-3.5.1 (a 403 error)

2016-04-13 Thread Asiga Nael via CMake
Hi, I'm trying to download the file cmake-3.5.1-Darwin-x86_64.dmg but it brings me to a page at public.kitware.com with a 403 error: "Permission Denied You do not have permission to retrieve the URL or link you requested." Is there any mirror hosting cmake releases, so that I can download it fr

Re: [CMake] how to add custom command/step to ExternalProject_Add ?

2016-04-13 Thread jagernicolas
Hi David, thx, I solve the problem with answer I got on stack, http://stackoverflow.com/questions/36506300/using-autogen-sh-with-externalproject-add [1] regards, Nicolas On 2016-04-08 22:05, David Cole wrote: > This file has an example use which executes after download and before >

Re: [CMake] Setting properties from within a function

2016-04-13 Thread Michael Surette
On 13/04/16 09:20 AM, Tamás Kenéz wrote: Okay, I see. The problem is that the ${DEF} is quoted so it won't fall apart into separate arguments. Tamás Thanks, I'll give that a try tonight. Mike -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://w

Re: [CMake] Setting properties from within a function

2016-04-13 Thread Tamás Kenéz
Okay, I see. The problem is that the ${DEF} is quoted so it won't fall apart into separate arguments. Tamás On Wed, Apr 13, 2016 at 4:54 AM, Michael Surette wrote: > On 2016-04-12 06:57 PM, Tamás Kenéz wrote: > >> I don't get how come the macro works because >> `target_compile_definitions` needs

Re: [CMake] issue with target_link_libraries and MSVC

2016-04-13 Thread Benjamin Ballet via CMake
I'v found a way to enable openmp for a few target only with target_link_libraries : I created an imported interface OpenMP and setted the property INTERFACE_COMPILE_OPTIONS 2016-04-13 12:16 GMT+02:00 Matějů Miroslav, Ing. : > The page I linked says /openmp is a compiler flag (not linker flag), so

Re: [CMake] issue with target_link_libraries and MSVC

2016-04-13 Thread Matějů Miroslav , Ing .
The page I linked says /openmp is a compiler flag (not linker flag), so adding it to CMAKE_CXX_FLAGS instead of LINK_FLAGS makes perfect sense. Miroslav From: Benjamin Ballet [mailto:bbal...@ivsweb.com] Sent: Wednesday, April 13, 2016 11:28 AM To: Matějů Miroslav, Ing. Cc: cmake@cmake.org Subjec

Re: [CMake] issue with target_link_libraries and MSVC

2016-04-13 Thread Benjamin Ballet via CMake
Ho yes, my bad, however there is still the same issue with forward slashes I receive the flag with FindOpenMP module. It's sad we can't do : target_link_libraries(... ${OpenMP_CXX_FLAGS}) for a few target In the end I add the flags for the whole project : set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}