Your provided example from documentation with External Project does not work
- Dominant language
- C++
- Stars
- 14k
- Forks
- 2.6k
- Avg merge
- 5d 18h
- Merged PRs (30d)
- 6
Description
### Checklist
- [X] I have searched for [similar issues](https://github.com/isl-org/Open3D/issues).
- [X] For Python issues, I have tested with the [latest development wheel](http://www.open3d.org/docs/latest/getting_started.html#development-version-pip).
- [X] I have checked the [release documentation](http://www.open3d.org/docs/release/) and the [latest documentation](http://www.open3d.org/docs/latest/) (for `master` branch).
### Steps to reproduce the issue
this is your example that does not work:
```
git clone https://github.com/intel-isl/open3d-cmake-external-project.git
cd open3d-cmake-external-project
mkdir build
cd build
cmake ..
cmake --build . --config Release --parallel 12
Release\Draw
```
```
# On Ubuntu 18.04, get the latest CMake from https://apt.kitware.com/.
cmake_minimum_required(VERSION 3.18)
project(Open3DCMakeExternalProject LANGUAGES C CXX)
option(GLIBCXX_USE_CXX11_ABI "Set -D_GLIBCXX_USE_CXX11_ABI=1" OFF)
option(STATIC_WINDOWS_RUNTIME "Use static (MT/MTd) Windows runtime" ON )
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "No CMAKE_BUILD_TYPE specified, default to Release.")
set(CMAKE_BUILD_TYPE "Release")
endif()
# Option 1: Use ExternalProject_Add, as shown in this CMake example.
# Option 2: Install Open3D first and use find_package, see
# http://www.open3d.org/docs/release/cpp_project.html for details.
include(ExternalProject)
ExternalProject_Add(
external_open3d
PREFIX open3d
GIT_REPOSITORY https://github.com/intel-isl/Open3D.git
GIT_TAG master
GIT_SHALLOW ON
UPDATE_COMMAND ""
# Check out https://github.com/intel-isl/Open3D/blob/master/CMakeLists.txt
# For the full list of available options.
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}
-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
-DGLIBCXX_USE_CXX11_ABI=${GLIBCXX_USE_CXX11_ABI}
-DSTATIC_WINDOWS_RUNTIME=${STATIC_WINDOWS_RUNTIME}
-DBUILD_SHARED_LIBS=ON
-DBUILD_PYTHON_MODULE=OFF
-DBUILD_EXAMPLES=OFF
)
# Simulate importing Open3D::Open3D
ExternalProject_Get_Property(external_open3d INSTALL_DIR)
add_library(Open3DHelper INTERFACE)
add_dependencies(Open3DHelper external_open3d)
target_compile_features(Open3DHelper INTERFACE cxx_std_14)
target_compile_definitions(Open3DHelper INTERFACE _GLIBCXX_USE_CXX11_ABI=$)
target_include_directories(Open3DHelper INTERFACE "${INSTALL_DIR}/include" "${INSTALL_DIR}/include/open3d/3rdparty")
target_link_directories(Open3DHelper INTERFACE "${INSTALL_DIR}/lib")
target_link_libraries(Open3DHelper INTERFACE Open3D)
add_library(Open3D::Open3D ALIAS Open3DHelper)
add_executable(Draw)
target_sources(Draw PRIVATE Draw.cpp)
target_link_libraries(Draw PRIVATE Open3D::Open3D)
```
### Error message
```shell
Configuring incomplete, errors occurred!
See also "C:/IBOIS57/_Code/Software/CPP/CMAKE/super_build/open3d/open3d-cmake-external-project/build/open3d/src/external_open3d-build/CMakeFiles/CMakeOutput.log".
See also "C:/IBOIS57/_Code/Software/CPP/CMAKE/super_build/open3d/open3d-cmake-external-project/build/open3d/src/external_open3d-build/CMakeFiles/CMakeError.log".
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Msbuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: Custom build for 'C:\IBOIS57\_Code\Software\CPP\CMAKE\super_build\open3d\open3d-cmak e-external-project\build\CMakeFiles\ca89f8e359f20bc5af70afe404465490\external_open3d-mkdir.rule;C:\IBOIS57\_Code\Software\CPP\CMAKE\super_build\open3d\open3d-cmake-external-project\build\CMakeFiles\ca89f8e359f20bc5af70afe40 4465490\external_open3d-download.rule;C:\IBOIS57\_Code\Software\CPP\CMAKE\super_build\open3d\open3d-cmake-external-project\build\CMakeFiles\ca89f8e359f20bc5af70afe404465490\external_open3d-update.rule;C:\IBOIS57\_Code\Softw are\CPP\CMAKE\super_build\open3d\open3d-cmake-external-project\build\CMakeFiles\ca89f8e359f20bc5af70afe404465490\external_open3d-patch.rule;C:\IBOIS57\_Code\Software\CPP\CMAKE\super_build\open3d\open3d-cmake-external-projec t\build\CMakeFiles\ca89f8e359f20bc5af70afe404465490\external_open3d-configure.rule;C:\IBOIS57\_Code\Software\CPP\CMAKE\super_build\open3d\open3d-cmake-external-project\build\CMakeFiles\ca89f8e359f20bc5af70afe404465490\exter nal_open3d-build.rule;C:\IBOIS57\_Code\Software\CPP\CMAKE\super_build\open3d\open3d-cmake-external-project\build\CMakeFiles\ca89f8e359f20bc5af70afe404465490\external_open3d-install.rule;C:\IBOIS57\_Code\Software\CPP\CMAKE\s uper_build\open3d\open3d-cmake-external-project\build\CMakeFiles\34214f22dce59220d8a9fa5e767c76c1\external_open3d-complete.rule;C:\IBOIS57\_Code\Software\CPP\CMAKE\super_build\open3d\open3d-cmake-external-project\build\CMak eFiles\0bbeec72e5c9aedbdd02aa34c90fcaf5\external_open3d.rule;C:\IBOIS57\_Code\Software\CPP\CMAKE\super_build\open3d\open3d-cmake-external-project\CMakeLists.txt' exited with code 1. [C:\IBOIS57\_Code\Software\CPP\CMAKE\supe r_build\open3d\open3d-cmake-external-project\build\external_open3d.vcxproj]
```
### Open3D, Python and System information
```markdown
- Operating system: Windows 10 64-bit
- Python version: C++ I do not use Python
- Open3D version: https://github.com/intel-isl/Open3D.git
- System architecture: x64
- Is this a remote workstation?: no
- How did you install Open3D?: CMake External Project
- Compiler version (if built from source): "Visual Studio 17 2022"
```
### Additional information
This is from your website:
https://github.com/isl-org/open3d-cmake-external-project

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.