From debc67729941de3abf158724fdf671833d0a3295 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Tue, 18 Aug 2015 13:07:46 -1000 Subject: [PATCH] fixed atdna macro --- DataSpec/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/DataSpec/CMakeLists.txt b/DataSpec/CMakeLists.txt index b53d50864..9f0635cb7 100644 --- a/DataSpec/CMakeLists.txt +++ b/DataSpec/CMakeLists.txt @@ -7,10 +7,13 @@ find_package(atdna REQUIRED) macro(make_dnalist outlist) foreach(type ${ARGN}) get_filename_component(dir ${type} DIRECTORY) + if(dir) + set(dir "${dir}/") + endif() get_filename_component(name ${type} NAME) - atdna(${CMAKE_CURRENT_BINARY_DIR}/${dir}atdna_${name}.cpp ${dir}/${name}.hpp) + atdna(${dir}atdna_${name}.cpp ${dir}/${name}.hpp) list(APPEND ${outlist} - ${CMAKE_CURRENT_BINARY_DIR}/${dir}/atdna_${name}.cpp + ${dir}atdna_${name}.cpp ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/${name}.hpp) endforeach() endmacro()