CMake: warn if the user did not set a build type#8162
CMake: warn if the user did not set a build type#8162LebedevRI wants to merge 1 commit intohalide:mainfrom
Conversation
|
This is not a valid patch since If you weren't getting a warning you might have set Most likely we need to fix a different build rule that unintentionally depends on it. |
|
Huh, this is quite weird, but somehow |
I did not get a warning for `-GNinja`, and the resulting failure is bizarre: ``` $ ninja Halide_Python [10/1842] Generating .__init__.py.stamp FAILED: python_bindings/src/halide/.__init__.py.stamp /repositories/halide/build-halide/python_bindings/src/halide/.__init__.py.stamp cd /repositories/halide/build-halide/python_bindings/src/halide && /usr/bin/cmake -E copy /repositories/halide/python_bindings/src/halide/__init__.py /halide/__init__.py1111 && /usr/bin/cmake -E touch /repositories/halide/build-halide/python_bindings/src/halide/.__init__.py.stamp Error copying file "/repositories/halide/python_bindings/src/halide/__init__.py" to "/halide/__init__.py". [43/1842] Building CXX object _deps/flatbuffers-build/CMakeFiles/flatbuffers.dir/src/idl_parser.cpp.o ninja: build stopped: subcommand failed. ``` (`TARGET_FILE_DIR` is somehow missing `CMAKE_CURRENT_BINARY_DIR` prefix)
2befe35 to
a46be40
Compare
|
Ok, right, the issue is |
FWIW, |
I did not get a warning for
-GNinja,and the resulting failure is bizarre:
(
TARGET_FILE_DIRis somehow missingCMAKE_CURRENT_BINARY_DIRprefix)