mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
Fix compiling imgui with boost libraries (#1755)
Addind only the include dirs is wrong. The cmake boost_headeronly library contains more settings. Without adding the cmake boost_headeronly library, the compilation of imgui is missing the defines for the boost library (f.e. BOOST_LOG_DYN_LINK) and it will result in linker errors. Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
committed by
GitHub
parent
84a7f3c084
commit
f1afe93d6f
@@ -16,5 +16,5 @@ add_library(imgui STATIC
|
|||||||
)
|
)
|
||||||
|
|
||||||
if(Boost_FOUND)
|
if(Boost_FOUND)
|
||||||
include_directories(${Boost_INCLUDE_DIRS})
|
target_link_libraries(imgui PRIVATE boost_headeronly)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user