0

According to the previous answer, I can tell CMake to use use phantom-dir to place cache files in it by using

cmake -H. -Bphantom-dir

However, I need three further customization:

  • The Makefile should be created inside in the current directory not phantom-dir.

  • The executable output of Makefile should be in the current directory too.

  • I need that -H. -Bphantom-dir be embedded in CMakeLists.txt hence a typical user will call cmake in the normal way by cmake .

Are these customizations implementable?

ar2015
  • 5,558
  • 8
  • 53
  • 110

0 Answers0