fix cmake pour mouli de con

This commit is contained in:
Guillem George 2026-02-28 14:26:23 +01:00
parent 83b6f31dac
commit 3a0dddabc9

View file

@ -38,16 +38,22 @@ set(CMAKE_BINARY_DIR build/)
# Import yaml-cpp # Import yaml-cpp
include(FetchContent) # Bon la mouli casse les couilles ENCORE UNE FOIS donc ça ça marche pas
#
# include(FetchContent)
FetchContent_Declare( # FetchContent_Declare(
yaml-cpp # yaml-cpp
GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git # GIT_REPOSITORY https://github.com/jbeder/yaml-cpp.git
# GIT_TAG <master> # # GIT_TAG <master>
) # )
FetchContent_MakeAvailable(yaml-cpp) # FetchContent_MakeAvailable(yaml-cpp)
#
# target_link_libraries(zork PUBLIC yaml-cpp::yaml-cpp)
find_library(yaml-cpp yaml-cpp)
target_link_libraries(zork PUBLIC yaml-cpp)
target_link_libraries(zork PUBLIC yaml-cpp::yaml-cpp)
target_link_options(zork PUBLIC -Wl,--no-undefined) target_link_options(zork PUBLIC -Wl,--no-undefined)