diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-08-21 20:21:09 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-21 20:21:09 (GMT) |
commit | 9eb4ffcc3f90ee88e5c7fb279b64ac07a9f6b670 (patch) | |
tree | 32fd3fb523c6269ab4e5f7b4e9c2ca50bebb92b3 /Source/FLTKDialog/CMakeSetupGUIImplementation.cxx | |
parent | a8128f88b72d8ea412c54353eae197da8cccc817 (diff) | |
download | CMake-9eb4ffcc3f90ee88e5c7fb279b64ac07a9f6b670.zip CMake-9eb4ffcc3f90ee88e5c7fb279b64ac07a9f6b670.tar.gz CMake-9eb4ffcc3f90ee88e5c7fb279b64ac07a9f6b670.tar.bz2 |
COMP: make it build on Linux
Alex
Diffstat (limited to 'Source/FLTKDialog/CMakeSetupGUIImplementation.cxx')
-rw-r--r-- | Source/FLTKDialog/CMakeSetupGUIImplementation.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx index 5e42f09..8019bb9 100644 --- a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx +++ b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx @@ -16,7 +16,7 @@ =========================================================================*/ #include "CMakeSetupGUIImplementation.h" -#include "FL/fl_file_chooser.H" +#include "FL/Fl_File_Chooser.H" #include "FL/filename.H" #include "FL/fl_ask.H" #include "../cmCacheManager.h" @@ -348,8 +348,14 @@ CMakeSetupGUIImplementation m_CMakeInstance->SetStartDirectory(m_WhereSource.c_str()); m_CMakeInstance->SetHomeOutputDirectory(m_WhereBuild.c_str()); m_CMakeInstance->SetStartOutputDirectory(m_WhereBuild.c_str()); + const char* defaultGenerator = 0; +#if defined(_WIN32) + defaultGenerator = "NMake Makefiles"; +#else defined(_WIN32) + defaultGenerator = "Unix Makefiles"; +#endif defined(_WIN32) m_CMakeInstance->SetGlobalGenerator( - m_CMakeInstance->CreateGlobalGenerator("NMake Makefiles")); + m_CMakeInstance->CreateGlobalGenerator(defaultGenerator)); m_CMakeInstance->SetCMakeCommand(m_PathToExecutable.c_str()); m_CMakeInstance->LoadCache(); if(m_CMakeInstance->Configure() != 0) |