Re: [CMake] Changing /W3 to /W4 does not update CMakeCache.txt

2017-02-02 Thread Craig Scott
See the first item on the following article for guidance on how to combine cache and non-cache values for CMAKE_CXX_FLAGS: http://voices.canonical.com/jussi.pakkanen/2013/03/26/a-list-of-common-cmake-antipatterns/ On Fri, Feb 3, 2017 at 12:19 PM, Andrew Maclean wrote: > Craig, >Thanks for

Re: [CMake] Changing /W3 to /W4 does not update CMakeCache.txt

2017-02-02 Thread Andrew Maclean
Craig, Thanks for this, I had forgotten the distinction between non-cached variables and cached variables I guess the issue is that whilst it is possible to modify the cached entry, it will never be used since the non-cached variable will always override it whenever cmake is invoked. Andrew O

Re: [CMake] Forcing linking compatability to old libc / libstdc++ (Linux)

2017-02-02 Thread Jean-Christophe Fillion-Robin
Hi Gonzalo, Using the dockcross/manylinux-x64 docker image should allow to build you project out-of-the-box. It is based on Centos5, include recent gcc, CMake, Git, etc ... See https://github.com/dockcross/dockcross In a nutshell, # Pull image docker pull dockcross/manylinux-x64 # Generate hel

Re: [CMake] Changing /W3 to /W4 does not update CMakeCache.txt

2017-02-02 Thread Craig Scott
Your CMakeLists.txt file is modifying the *non-cache* variable CMAKE_CXX_FLAGS. During CMake processing, a non-cache variable will override a cache variable of the same name, but modifying a non-cache variable won't update the cache. CMake is working as designed with regard to the handling of CMAKE

[CMake] Changing /W3 to /W4 does not update CMakeCache.txt

2017-02-02 Thread Andrew Maclean
Consider the attached CMakeLists.txt script. When run, CMAKE_CXX_FLAGS is updated correctly, however the line: CMAKE_CXX_FLAGS:STRING=/DWIN32 /D_WINDOWS /W3 /GR /EHsc in CMakeCache.txt is never updated. However the build instructions e.g build.ninja reflect the correct command: FLAGS = /DWIN32 /

[CMake] Mac OS. Cmake changes it's behaviout when building framework for iOS simulator

2017-02-02 Thread Сергей Бойцов
Hello.I'm looking for some help cause i have faced a really strange problem with building frameworks on Mac OSSo i have: Mac OS X : el captainXcode 8.0CMake 3.3.2 [1],CMake 3.4.5 [2],CMake 3.5-3.6 [3] And simple test project consisted from 4 files1) empty header file2) empty c file3) CMakeLists.txt

[CMake] fixup_bundle fails for read-only .dylib files

2017-02-02 Thread Neil Williams
Hello, We use perforce for our source control system, which has a typical configuration where files need to be explicitly checked out prior to them being changed. If they are not checked the files are marked as read only. When trying to use fixup_bundle with a dylib in the perforce depot it fails

[CMake] PCL+CUDA results in error: "nvcc fatal single input file is required" when compiled with Visual Studio 2015

2017-02-02 Thread Nospi
Hi everyone, I'd like to ask how to use find_package for PCL (http://pointclouds.org/) and CUDA in the same build. I get a fatal error from NVCC (see below) if i try. To reproduce create a CMake file:   cmake_minimum_required(VERSION 3.4 FATAL_ERROR) find_package(PCL 1.8 REQUIRED) find_package(CU