Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Replace explicit BUILD_TESTING option with CTest module
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul committed Feb 18, 2024
1 parent 01153b6 commit a8116b6
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,7 @@ set_property(TARGET TrajoptLib PROPERTY FOLDER "libraries")
target_compile_definitions(TrajoptLib PRIVATE TRAJOPT_EXPORTS)

include(CMakeDependentOption)

cmake_dependent_option(
BUILD_TESTING
"Enable creation of tests."
ON
"PROJECT_IS_TOP_LEVEL"
OFF
)

include(CTest)
include(FetchContent)

if(BUILD_TESTING)
Expand Down Expand Up @@ -136,8 +128,8 @@ elseif(${OPTIMIZER_BACKEND} STREQUAL "sleipnir")
fetchcontent_declare(
Sleipnir
GIT_REPOSITORY https://github.com/SleipnirGroup/Sleipnir.git
# main on 2024-02-17
GIT_TAG 091731acf3e60252b3fbbebfef776b98d5ef8523
# main on 2024-02-18
GIT_TAG b30eac61fc2f83ffca9a972c59b491ede0ea8752
)
fetchcontent_makeavailable(Sleipnir)
target_compile_definitions(TrajoptLib PRIVATE OPTIMIZER_BACKEND_SLEIPNIR)
Expand Down

0 comments on commit a8116b6

Please sign in to comment.