CMake で "Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo." というエラーが出た
> cmake ..
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/local/Cellar/cmake/3.1.0/share/cmake/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/usr/bin/cc" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/hoge/project/hoge/image-colorization/build/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTryCompileExec731088698/fast"
Agreeing to the Xcode/iOS license requires admin privileges, please re-run
as root via sudo.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "/Users/hoge/project/hoge/image-colorization/build/CMakeFiles/CMakeOutput.log".
See also "/Users/hoge/project/hoge/image-colorization/build/CMakeFiles/CMakeError.log".
> make
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.
OSを更新したら起きた
Xcode のライセンスに同意すれば解決します