diff options
author | Brad King <brad.king@kitware.com> | 2011-04-14 13:35:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-04-14 13:35:21 (GMT) |
commit | 08b93977cffacc53f2c5b405f781efd035240175 (patch) | |
tree | 3e1b5360899659a70e51ab3ef0d94d3ef003dc3f /Tests/FindPackageTest | |
parent | 93021adb732106776458caac8be99fa2c8609566 (diff) | |
download | CMake-08b93977cffacc53f2c5b405f781efd035240175.zip CMake-08b93977cffacc53f2c5b405f781efd035240175.tar.gz CMake-08b93977cffacc53f2c5b405f781efd035240175.tar.bz2 |
find_package: Fix system package registry test path conversion
Do not use file(TO_NATIVE_PATH) to compute the value to store in the
registry. It is meant for constructing values to be put in shells.
Since find_package() can use the value with CMake-normalized slashes do
not bother with any conversion.
Diffstat (limited to 'Tests/FindPackageTest')
-rw-r--r-- | Tests/FindPackageTest/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/FindPackageTest/CMakeLists.txt b/Tests/FindPackageTest/CMakeLists.txt index 9ac9eee..89383a0 100644 --- a/Tests/FindPackageTest/CMakeLists.txt +++ b/Tests/FindPackageTest/CMakeLists.txt @@ -42,7 +42,7 @@ FIND_PACKAGE(VersionTestD 1.2.3.4) SET(CMakeTestSystemPackage "") IF(WIN32 AND NOT CYGWIN) # Try writing a value to the system package registry. - FILE(TO_NATIVE_PATH "${FindPackageTest_SOURCE_DIR}/SystemPackage" _data) + SET(_data "${FindPackageTest_SOURCE_DIR}/SystemPackage") SET(_key "HKLM\\Software\\Kitware\\CMake\\Packages\\CMakeTestSystemPackage") SET(_file "${FindPackageTest_BINARY_DIR}/CMakeTestSystemPackage.data") FILE(WRITE ${_file} "${_data}\n") |