Use full path in examples_SOURCES

That's the convention used elsewhere in the build system and we
should honour that convention.  While here, remove the assignment to
PROGRAM_SOURCE_FILES because that variable is no longer referenced
once we start to run the hooks.
This commit is contained in:
Bård Skaflestad 2014-04-10 00:56:09 +02:00
parent c3bb686600
commit 433be936e4

View File

@ -55,9 +55,8 @@ endmacro (prereqs_hook)
macro (sources_hook)
if(DUNE_CORNERPOINT_FOUND OR dune-cornerpoint_FOUND)
list (APPEND examples_SOURCES
examples/sim_fibo_ad_cp.cpp)
list (APPEND PROGRAM_SOURCE_FILES
examples/sim_fibo_ad_cp.cpp)
${PROJECT_SOURCE_DIR}/examples/sim_fibo_ad_cp.cpp
)
endif()
endmacro (sources_hook)