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
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
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
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
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 /
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
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
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