Tests: Improve FindPackageTest for in-source builds

Use a different directory name for the Exporter build tree so that it is
out-of-source even when the main test is in-source.
This commit is contained in:
Brad King 2014-05-09 11:43:15 -04:00
parent ac24a1c031
commit d09fda5d91
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ set(version "${version}.${v}")
message(STATUS "Preparing export(PACKAGE) test project") message(STATUS "Preparing export(PACKAGE) test project")
try_compile(EXPORTER_COMPILED try_compile(EXPORTER_COMPILED
${FindPackageTest_BINARY_DIR}/Exporter ${FindPackageTest_BINARY_DIR}/Exporter-build
${FindPackageTest_SOURCE_DIR}/Exporter ${FindPackageTest_SOURCE_DIR}/Exporter
CMakeTestExportPackage dummy CMakeTestExportPackage dummy
CMAKE_FLAGS CMAKE_FLAGS