From 10572188f354024be9d1b9f87d2a4f81bda3343b Mon Sep 17 00:00:00 2001 From: Gregoire Ville Date: Tue, 26 Nov 2024 11:31:40 +0100 Subject: [PATCH] Replace args by cache_args in Anima.cmake inside superbuild --- superbuild/Anima.cmake | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/superbuild/Anima.cmake b/superbuild/Anima.cmake index 659fa66d1..3616223e8 100644 --- a/superbuild/Anima.cmake +++ b/superbuild/Anima.cmake @@ -1,9 +1,9 @@ set (proj Anima) -set (cmake_args +set (cmake_cache_args ${common_cache_args} - -DEXECUTABLE_OUTPUT_PATH=${CMAKE_BINARY_DIR}/bin - -DLIBRARY_OUTPUT_PATH=${CMAKE_BINARY_DIR}/lib + -DEXECUTABLE_OUTPUT_PATH:PATH=${CMAKE_BINARY_DIR}/bin + -DLIBRARY_OUTPUT_PATH:PATH=${CMAKE_BINARY_DIR}/lib -DBUILD_TOOLS:BOOL=${BUILD_ANIMA_TOOLS} -DBUILD_TESTING:BOOL=${BUILD_ANIMA_TESTING} -DBUILD_DOCUMENTATION:BOOL=${BUILD_ANIMA_DOCUMENTATION} @@ -16,7 +16,7 @@ set (cmake_args -DBUILD_MODULE_QUANTITATIVE_MRI:BOOL=ON -DTinyXML2_INCLUDE_DIR:PATH=${TinyXML2_SRC_DIR} -DTinyXML2_LIBRARY_DIR:PATH=${TinyXML2_BUILD_DIR} - -DUSE_NLOPT=${USE_NLOPT} + -DUSE_NLOPT:BOOL=${USE_NLOPT} -DNLOPT_INCLUDE_DIR:PATH=${NLOPT_INCLUDE_DIR} -DNLOPT_SECONDARY_INCLUDE_DIR:PATH=${NLOPT_SECONDARY_INCLUDE_DIR} -DNLOPT_LIBRARY_DIR:PATH=${NLOPT_BUILD_DIR} @@ -35,7 +35,7 @@ ExternalProject_Add(${proj} SOURCE_DIR ${CMAKE_SOURCE_DIR}/${proj} CMAKE_GENERATOR ${cmake_gen} CMAKE_GENERATOR_PLATFORM ${CMAKE_GENERATOR_PLATFORM} - CMAKE_ARGS ${cmake_args} + CMAKE_CACHE_ARGS ${cmake_cache_args} BUILD_ALWAYS 1 BINARY_DIR ${CMAKE_BINARY_DIR}/${proj} INSTALL_COMMAND ""