Pau Garcia i Quiles wrote:
============
GET_FILENAME_COMPONENT( THE_PATH
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Boost-Consulting.com\\1.34.0;InstallRoot]
)
MESSAGE( "THE_PATH = ${THE_PATH}" )
============
I receive this error:
============
C:\temp3\a>cmake ..
-- Check for working C compiler: cl
-- Check for working C compiler: cl -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: cl
-- Check for working CXX compiler: cl -- works
CMake Error: Error in cmake code at
C:/temp3/CMakeLists.txt:1:
GET_FILENAME_COMPONENT called with incorrect number of arguments
Current CMake stack: C:/temp3/CMakeLists.txt;C:/Archivos de
programa/CMake
2.4/share/cmake-2.4/Modules/CMakeCInformation.cmake;C:/Archivos de
programa/CMake
2.4/share/cmake-2.4/Modules/Platform/Windows-cl.cmake;C:/temp3/a/CMakeFiles/CMakeCP
latform.cmake
Sure, and it is wrong...
This should work:
GET_FILENAME_COMPONENT( THE_PATH
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Boost-Consulting.com\\1.34.0;InstallRoot]
PATH)
See the docs for GET_FILENAME_COMPONENT.
-Bill
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake