diff options
author | Luis Ibanez <luis.ibanez@kitware.com> | 2001-06-13 14:28:41 (GMT) |
---|---|---|
committer | Luis Ibanez <luis.ibanez@kitware.com> | 2001-06-13 14:28:41 (GMT) |
commit | 03817a41cfc48707852e30d57f608f90d4f74427 (patch) | |
tree | 5a4626a130ba775621320cf90c3c266da47be128 /Source/FLTKDialog | |
parent | da5b5c12cd1727a0410dcd0053685cfb1d19f588 (diff) | |
download | CMake-03817a41cfc48707852e30d57f608f90d4f74427.zip CMake-03817a41cfc48707852e30d57f608f90d4f74427.tar.gz CMake-03817a41cfc48707852e30d57f608f90d4f74427.tar.bz2 |
ENH: Search for cmake executable full path added (window/unix)
Diffstat (limited to 'Source/FLTKDialog')
-rw-r--r-- | Source/FLTKDialog/CMakeSetupGUIImplementation.cxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx index c746d37..2b07c57 100644 --- a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx +++ b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx @@ -20,10 +20,22 @@ CMakeSetupGUIImplementation ::CMakeSetupGUIImplementation() { m_BuildPathChanged = false; + +// Construct the full path to cmake executable + +#if defined(_WIN32) char fname[1024]; - //::GetModuleFileName(NULL,fname,1023); // Didn't found this method. (?) + ::GetModuleFileName(NULL,fname,1023); // Didn't found this method. (?) m_PathToExecutable = cmSystemTools::GetProgramPath(fname).c_str(); m_PathToExecutable += "/cmake.exe"; +#else + char fullPathToCMake[1024]; + filename_absolute( fullPathToCMake, "../cmake" ); + m_PathToExecutable = fullPathToCMake; +#endif + + std::cout << "Path to CMake executable " << m_PathToExecutable << std::endl; + } |