Re: [CMake] using variables in ExternalProject_Add arguments

2019-06-22 Thread Kris Thielemans
Dear all I've managed to resolve this. My mistake was to use quotes: WRONG: set(HDF5_CMAKE_ARGS "-DHDF5_ROOT:PATH=${HDF5_ROOT} -DHDF5_INCLUDE_DIRS:PATH=${HDF5_INCLUDE_DIRS} -DHDF5_FIND_DEBUG:BOOL=ON" ) CORRECT: set(HDF5_CMAKE_ARGS -DHDF5_ROOT:PATH=${HDF5_

[CMake] using variables in ExternalProject_Add arguments

2019-06-21 Thread Kris Thielemans
Dear all We have a Superbuild https://github.com/CCPPETMR/SIRF-SuperBuild. I'm trying to introduce variables to reduce duplication. However, I'm getting weird errors. 2 examples below. Any ideas? (I'm running this on Windows 10 at present with CMake 3.13.2). Many thanks Kris 1. Us