Re: [CMake] DEPFILE usage in add_custom_command(...)

2018-12-17 Thread Ed Branch
The target name in the depfile does not match the target name on the ninja build line due to absolute vs relative path mismatch. Even though they refer to the same file, the target names must match exactly. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ

Re: [CMake] Super builds and export with Namespace

2016-08-12 Thread Ed Branch
We do it like this: - in projectA/CMakeLists.txt: set( ProjectA_IN_TREE TRUE CACHE INTERNAL "" ) - in projectA/ProjectA-config.cmake.in (which is converted to ProjectA-config.cmake by a call to configure_package_config_file from the CMakePackageConfigHelpers module): if( Projec

Re: [CMake] Create space delimited string with $ genex

2015-07-10 Thread Ed Branch
Hello, in my build process I need to call a compiler like tool with the same include directories as a certain target. I tried the following: cmake_minimum_required(VERSION 3.2) project(cmake-genex C) add_library(dummy dummy.c foo.c) target_include_directories(dummy PUBLIC foo bar) set(prop "$