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:
parent
ac24a1c031
commit
d09fda5d91
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue