Skip to content

Commit

Permalink
[cmake]: Disable unwanted curl options and put missed targets in corr…
Browse files Browse the repository at this point in the history
…ect IDE folder (#1997)
  • Loading branch information
DownerCase authored Feb 4, 2025
1 parent e189300 commit 81795fe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 8 additions & 1 deletion thirdparty/curl/build-curl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ if(WIN32)
endif()

set(BUILD_CURL_EXE OFF CACHE BOOL "Don't build the curl executable" FORCE)
set(ENABLE_MANUAL OFF CACHE BOOL "Disable built-in manual" FORCE)
set(ENABLE_CURL_MANUAL OFF CACHE BOOL "Disable built-in manual" FORCE)
set(PICKY_COMPILER OFF CACHE BOOL "Disable extra compiler options" FORCE)
set(BUILD_LIBCURL_DOCS OFF CACHE BOOL "Disable libcurl man pages" FORCE)
set(BUILD_MISC_DOCS OFF CACHE BOOL "Disable misc man pages" FORCE)
set(BUILD_EXAMPLES OFF CACHE BOOL "Disable curl examples" FORCE)

# All targets made by curl will go in the correct IDE folder
set(CMAKE_FOLDER "thirdparty/curl")

ecal_disable_all_warnings()
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/curl thirdparty/curl EXCLUDE_FROM_ALL SYSTEM)
Expand Down
6 changes: 5 additions & 1 deletion thirdparty/yaml-cpp/build-yaml-cpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@ set(YAML_MSVC_SHARED_RT ON CACHE BOOL "My option" FORCE)
set(YAML_BUILD_SHARED_LIBS OFF CACHE BOOL "My option" FORCE)
set(YAML_CPP_BUILD_TOOLS OFF CACHE BOOL "My option" FORCE)
set(YAML_CPP_BUILD_CONTRIB OFF CACHE BOOL "My option" FORCE)

# All targets made by yaml-cpp (including the uninstall target) will go in
# the correct IDE folder
set(CMAKE_FOLDER "thirdparty/yaml-cpp")

add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/yaml-cpp thirdparty/yaml-cpp EXCLUDE_FROM_ALL SYSTEM)
set_property(TARGET yaml-cpp PROPERTY FOLDER thirdparty/yaml-cpp)

0 comments on commit 81795fe

Please sign in to comment.