-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Description
Previously the cmake generator provided a imgui_RES_DIRS variable pointing to the res/ folder under the package installation, which was the only way of obtaining the packaged bindings which are located at res/bindings/.
Package and Environment Details
- Package Name/Version: imgui/1.89.2
- Operating System+version: Arch Linux 2023-01-10
- Compiler+version: GCC 12.2.0
- Docker image: n/a
- Conan version: conan 1.56.0
- Python version: Python 3.9.16 (PyPy 7.3.11)
Conan profile
Configuration (profile_host):
[settings]
arch=x86_64
build_type=Debug
compiler=gcc
compiler.cppstd=20
compiler.libcxx=libstdc++11
compiler.version=12.2
os=Linux
Configuration (profile_build):
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=20
compiler.libcxx=libstdc++11
compiler.version=12.2
os=Linux
Steps to reproduce
create a CMakeLists.txt which depends on one of the packaged bindings, using the cmake and cmake_find_package
find_package(SDL2 REQUIRED)
find_package(imgui REQUIRED)
add_library(imgui_impl_sdl OBJECT ${imgui_RES_DIRS}/bindings/imgui_impl_sdl.cpp)
target_include_directories(imgui_impl_sdl PUBLIC ${imgui_RES_DIRS}/bindings/)
target_link_libraries(imgui_impl_sdl PUBLIC imgui::imgui PRIVATE SDL2::SDL2)
add_executable(main)
target_link_libraries(main PRIVATE main)Logs
Click to expand log
CMake Error at external/imgui/CMakeLists.txt:6 (add_library):
Cannot find source file:
/bindings/imgui_impl_sdl.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
.hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested