From d09fda5d91e92155ef674dde97a66547cc750e9f Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 9 May 2014 11:43:15 -0400 Subject: 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. --- Tests/FindPackageTest/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/FindPackageTest/CMakeLists.txt b/Tests/FindPackageTest/CMakeLists.txt index fc82a1e..092801b 100644 --- a/Tests/FindPackageTest/CMakeLists.txt +++ b/Tests/FindPackageTest/CMakeLists.txt @@ -328,7 +328,7 @@ set(version "${version}.${v}") message(STATUS "Preparing export(PACKAGE) test project") try_compile(EXPORTER_COMPILED - ${FindPackageTest_BINARY_DIR}/Exporter + ${FindPackageTest_BINARY_DIR}/Exporter-build ${FindPackageTest_SOURCE_DIR}/Exporter CMakeTestExportPackage dummy CMAKE_FLAGS -- cgit v0.12