diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..16fd371 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,5 @@ +configure_file ( + "${CMAKE_CURRENT_SOURCE_DIR}/build/CACHEDIR.TAG.in" + "${CMAKE_BINARY_DIR}/CACHEDIR.TAG" + @ONLY +) diff --git a/init.py b/init.py index 565c498..2e13047 100755 --- a/init.py +++ b/init.py @@ -88,7 +88,6 @@ if __name__ == '__main__': accumulated += [f'"-D{key}={val}"' for key, val in vars.items()] accumulated += args cmds = [ - f"cp {os.path.join(self_dir, 'CACHEDIR.TAG.in')} CACHEDIR.TAG", f"cmake {source_dir} {' '.join(accumulated)}", ' '.join(build) ]