From 4fe4a65f6c8e5d00b7216426d8a762b208dd31d2 Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Thu, 18 Mar 2010 10:32:49 +0000 Subject: [PATCH] - Fix try_run in CGAL_UseMPFI.cmake: move the test file in cmake/modules/. --- .gitattributes | 2 +- Installation/cmake/modules/CGAL_UseMPFI.cmake | 2 +- Installation/{config/support => cmake/modules}/test_MPFI.cpp | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename Installation/{config/support => cmake/modules}/test_MPFI.cpp (100%) diff --git a/.gitattributes b/.gitattributes index 284b6ba0260..8bf2f64561d 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1459,6 +1459,7 @@ Installation/cmake/modules/FindRS.cmake -text Installation/cmake/modules/FindTAUCS.cmake -text Installation/cmake/modules/Qt3Macros-patched.cmake -text Installation/cmake/modules/UseCGAL.cmake -text +Installation/cmake/modules/test_MPFI.cpp -text Installation/config/support/print_BOOST_version.cpp -text Installation/config/support/print_GMP_version.cpp -text Installation/config/support/print_MPFI_version.cpp -text @@ -1468,7 +1469,6 @@ Installation/config/support/print_QT_version.cpp -text Installation/config/support/print_TAUCS_version.cpp -text Installation/config/support/print_ZLIB_version.cpp -text Installation/config/support/test_BOOST_THREAD.cpp -text -Installation/config/support/test_MPFI.cpp -text Installation/config/testfiles/CGAL_CFG_NO_CPP0X_ISFINITE.cpp -text Installation/doc_tex/Installation/illustration.png -text Installation/src/CGAL/all_files.cpp -text diff --git a/Installation/cmake/modules/CGAL_UseMPFI.cmake b/Installation/cmake/modules/CGAL_UseMPFI.cmake index cae8f5c1fa0..23bde72960f 100644 --- a/Installation/cmake/modules/CGAL_UseMPFI.cmake +++ b/Installation/cmake/modules/CGAL_UseMPFI.cmake @@ -12,7 +12,7 @@ if( NOT CGAL_MPFI_SETUP ) try_run( MPFI_TEST_RESULT COMPILED_MPFI_TEST "${CMAKE_BINARY_DIR}" - "${CMAKE_SOURCE_DIR}/../../config/support/test_MPFI.cpp" + "${CGAL_CMAKE_MODULE_PATH}/test_MPFI.cpp" CMAKE_FLAGS "-DINCLUDE_DIRECTORIES: STRING=${MPFI_INCLUDE_DIR};${CGAL_3RD_PARTY_INCLUDE_DIRS}" diff --git a/Installation/config/support/test_MPFI.cpp b/Installation/cmake/modules/test_MPFI.cpp similarity index 100% rename from Installation/config/support/test_MPFI.cpp rename to Installation/cmake/modules/test_MPFI.cpp