fix cmake pour mouli de con
This commit is contained in:
parent
83b6f31dac
commit
3a0dddabc9
1 changed files with 14 additions and 8 deletions
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue