Reference correct variable in source-file auto-detection

Commit f638ee8 contained a last-minute, untested change that caused
downstream build failures.  Reference the correct variable,

    PROJECT_SOURCE_DIR

in place of the non-existent CMAKE_PROJECT_SOURCE_DIR.

Pointy hat: Bard.Skaflestad@sintef.no
This commit is contained in:
Bård Skaflestad
2015-10-01 13:46:29 +02:00
parent e83cec750b
commit 7f6d6ec256

View File

@@ -210,7 +210,7 @@ macro(opm_add_test TestName)
# explicitly specified.
if (NOT CURTEST_SOURCES)
set(CURTEST_SOURCES "")
set(_SDir "${CMAKE_PROJECT_SOURCE_DIR}")
set(_SDir "${PROJECT_SOURCE_DIR}")
foreach(CURTEST_CANDIDATE "${CURTEST_EXE_NAME}.cpp"
"${CURTEST_EXE_NAME}.cc"
"tests/${CURTEST_EXE_NAME}.cpp"