Skip to content

Instantly share code, notes, and snippets.

@sa2ajj
Last active September 13, 2016 02:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sa2ajj/ba9c662efe223cd1c8546be08b2eca7e to your computer and use it in GitHub Desktop.
Save sa2ajj/ba9c662efe223cd1c8546be08b2eca7e to your computer and use it in GitHub Desktop.
relative paths all the way?
...
build CMakeFiles/blah.dir/main.cpp.o: CXX_COMPILER__blah ../main.cpp
DEP_FILE = CMakeFiles/blah.dir/main.cpp.o.d
OBJECT_DIR = CMakeFiles/blah.dir
OBJECT_FILE_DIR = CMakeFiles/blah.dir
...
cmake_minimum_required(VERSION 3.6)
project(blah)
add_executable(
blah
main.cpp
)
cmake -G Ninja /path/to/cmake-problem
...
rule CXX_COMPILER__blah
depfile = $DEP_FILE
deps = gcc
command = /usr/bin/c++ $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in
description = Building CXX object $out
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment