1. 02 Sep, 2009 1 commit
    • Brad King's avatar
      Silence VS generator for missing CMakeLists.txt · 0e8c7859
      Brad King authored
      CMake Makefile generators silently ignore missing CMakeLists.txt files
      and just treat the source directory as if it had an empty input file.
      This will be addressed with a new CMake Policy, but for now we make the
      VS generator consistent with the Makefile generator behavior.  The VS
      generator will need to handle the OLD behavior of the policy anyway.
      0e8c7859
  2. 14 Jul, 2009 1 commit
  3. 07 Jul, 2009 1 commit
    • Brad King's avatar
      ENH: Simpler cmTarget::GetLinkerLanguage signature · a6084671
      Brad King authored
      This method previously required the global generator to be passed, but
      that was left from before cmTarget had its Makefile member.  Now the
      global generator can be retrieved automatically, so we can drop the
      method argument.
      a6084671
  4. 03 Jul, 2009 2 commits
    • Brad King's avatar
      BUG: Avoid cmTarget::GetDirectory for utilities · 43669f0e
      Brad King authored
      Since utility targets have no main output files like executables or
      libraries, they do not define an output directory.  This removes a call
      to cmTarget::GetDirectory from cmLocalVisualStudio{6,7}Generator for
      such targets.
      43669f0e
    • Brad King's avatar
      STYLE: Replace large if() with named boolean · 44021718
      Brad King authored
      In cmLocalVisualStudio{6,7}Generator this replaces a large if() test
      with a re-usable result stored in a boolean variable named accordingly.
      44021718
  5. 16 Jun, 2009 2 commits
    • Brad King's avatar
      BUG: Create an exe's implib output dir for VS 6 · 962bbbec
      Brad King authored
      VS 6 forgets to create the output directory for an executable's import
      library in case the exe dllexport-s symbols.  We work around this VS bug
      by creating a pre-link event on the executable target to make the
      directory.
      962bbbec
    • Brad King's avatar
      ENH: Refactor VS 6 build event generation · 5129c23c
      Brad King authored
      In cmLocalVisualStudio6Generator we generate pre-build, pre-link, and
      post-build events into project files.  This refactors the generation
      code for the three event types into a private EventWriter class to avoid
      duplicate code.
      5129c23c
  6. 24 Apr, 2009 1 commit
    • Brad King's avatar
      ENH: Support more preprocessor values in VS6 · 708d1cf1
      Brad King authored
      Previously we rejected all preprocessor definition values containing
      spaces for the VS6 IDE generator.  In fact VS6 does support spaces but
      not in combination with '"', '$', or ';', and only if we use the sytnax
      '-DNAME="value with spaces"' instead of '-D"NAME=value with spaces"'.
      Now we support all definition values that do not have one of these
      invalid pairs.  See issue #8779.
      708d1cf1
  7. 23 Mar, 2009 1 commit
    • Brad King's avatar
      ENH: Support preprocessor def values in VS6 · 40854546
      Brad King authored
      The add_definitions() command and COMPILE_DEFINITIONS dir/tgt/src
      properties support preprocessor definitions with values.  Previously
      values were not supported in the VS6 generator even though the native
      tool supports them.  It is only values with spaces that VS6 does not
      support.  This enables support and instead complains only for values
      with spaces.  See issue #8779.
      40854546
  8. 16 Dec, 2008 1 commit
    • Brad King's avatar
      ENH: Refactor passing of max length object dir · 3cf9265f
      Brad King authored
      When computing the maximum length full path to the build directory under
      which object files will be placed, pass the actual path instead of just
      its length.  This will be useful for error message generation.
      3cf9265f
  9. 10 Dec, 2008 1 commit
  10. 09 Dec, 2008 1 commit
    • David Cole's avatar
      COMP: Fix the ExternalProject test for Visual Studio 6. Visual Studio 6 *.dsp... · 16f35e18
      David Cole authored
      COMP: Fix the ExternalProject test for Visual Studio 6. Visual Studio 6 *.dsp files cannot have hyphens in them. Add utility function GetVS6TargetName to replace hyphens with underscores when generating *.dsp file names. Use the function everywhere necessary in the VS6 generators. And, a workaround: VS6 uses ".\Debug" (for example) as an "$(IntDir)" value - strip any leading ".\" when processing a --config argument in the cmake --build handling code.
      16f35e18
  11. 07 Dec, 2008 1 commit
  12. 04 Dec, 2008 1 commit
  13. 03 Dec, 2008 1 commit
  14. 09 Sep, 2008 1 commit
  15. 16 May, 2008 1 commit
  16. 21 Apr, 2008 1 commit
  17. 29 Jan, 2008 2 commits
  18. 28 Jan, 2008 1 commit
    • Brad King's avatar
      ENH: Updated exporting and importing of targets to support libraries and configurations. · 5594ad48
      Brad King authored
        - Created cmExportFileGenerator hierarchy to implement export file generation
        - Installed exports use per-config import files loaded by a central one.
        - Include soname of shared libraries in import information
        - Renamed PREFIX to NAMESPACE in INSTALL(EXPORT) and EXPORT() commands
        - Move addition of CMAKE_INSTALL_PREFIX to destinations to install generators
        - Import files compute the installation prefix relative to their location when loaded
        - Add mapping of importer configurations to importee configurations
        - Rename IMPORT targets to IMPORTED targets to distinguish from windows import libraries
        - Scope IMPORTED targets within directories to isolate them
        - Place all properties created by import files in the IMPORTED namespace
        - Document INSTALL(EXPORT) and EXPORT() commands.
        - Document IMPORTED signature of add_executable and add_library
        - Enable finding of imported targets in cmComputeLinkDepends
      5594ad48
  19. 22 Jan, 2008 1 commit
    • Brad King's avatar
      ENH: Implement linking with paths to library files instead of -L and -l separation. See bug #3832 · 96fd5909
      Brad King authored
        - This is purely an implementation improvement.  No interface has changed.
        - Create cmComputeLinkInformation class
        - Move and re-implement logic from:
            cmLocalGenerator::ComputeLinkInformation
            cmOrderLinkDirectories
        - Link libraries to targets with their full path (if it is known)
        - Dirs specified with link_directories command still added with -L
        - Make link type specific to library names without paths
          (name libfoo.a without path becomes -Wl,-Bstatic -lfoo)
        - Make directory ordering specific to a runtime path computation feature
          (look for conflicting SONAMEs instead of library names)
        - Implement proper rpath support on HP-UX and AIX.
      96fd5909
  20. 17 Jan, 2008 2 commits
  21. 15 Jan, 2008 1 commit
  22. 14 Jan, 2008 1 commit
  23. 20 Nov, 2007 1 commit
  24. 09 Nov, 2007 1 commit
  25. 10 Aug, 2007 1 commit
  26. 01 Aug, 2007 1 commit
  27. 28 Jun, 2007 1 commit
    • Alexander Neundorf's avatar
      · 43de8c86
      Alexander Neundorf authored
      ENH: add OPTIONAL keyword to ENABLE_LANGUAGE, so it will be possible to do
      something like this:
      
      ENABLE_LANGUAGE(ASM-ATT)
      IF(CMAKE_ASM-ATT_COMPILER_WORKS)
        ... do assembler stufff
      ELSE(CMAKE_ASM-ATT_COMPILER_WORKS)
        ... fallback to generic C/C++
      ENDIF(CMAKE_ASM-ATT_COMPILER_WORKS)
      
      Alex
      43de8c86
  28. 18 Jun, 2007 1 commit
    • Brad King's avatar
      ENH: Merging changes from branch CMake-SourceFile2-b between tags · 35936433
      Brad King authored
      CMake-SourceFile2-bp and CMake-SourceFile2-b-mp1 to trunk.  This
      commit is surrounded by tags CMake-SourceFile2-b-mp1-pre and
      CMake-SourceFile2-b-mp1-post on the trunk.
      
      The changes re-implement cmSourceFile and the use of it to allow
      instances to be created much earlier.  The use of cmSourceFileLocation
      allows locating a source file referenced by a user to be much simpler
      and more robust.  The two SetName methods are no longer needed so some
      duplicate code has been removed.  The strange "SourceName" stuff is
      gone.  Code that created cmSourceFile instances on the stack and then
      sent them to cmMakefile::AddSource has been simplified and converted
      to getting cmSourceFile instances from cmMakefile.  The CPluginAPI has
      preserved the old API through a compatibility interface.
      
      Source lists are gone.  Targets now get real instances of cmSourceFile
      right away instead of storing a list of strings until the final pass.
      
      TraceVSDependencies has been re-written to avoid the use of
      SourceName.  It is now called TraceDependencies since it is not just
      for VS.  It is now implemented with a helper object which makes the
      code simpler.
      35936433
  29. 28 May, 2007 1 commit
  30. 24 May, 2007 1 commit
    • Alexander Neundorf's avatar
      · 79756b0e
      Alexander Neundorf authored
      BUG: don't use non-imported target when cross compiling as commands in custom commands
      STYLE: remove now invalid comments, use this->
      
      Alex
      79756b0e
  31. 23 May, 2007 1 commit
  32. 22 May, 2007 1 commit
    • Alexander Neundorf's avatar
      · 4878c009
      Alexander Neundorf authored
      ENH: add the IMPORT keyword to ADD_EXECUTABLE(), which generates an
      "imported" executable target. This can then be used e.g. with
      ADD_CUSTOM_COMMAND() to generate stuff. It adds a second container for
      "imported" targets, and FindTarget() now takes an additional argument bool
      useImportedTargets to specify whether you also want to search in the
      imported targets or only in the "normal" targets.
      
      Alex
      4878c009
  33. 14 May, 2007 1 commit
    • Alexander Neundorf's avatar
      · e4b5de63
      Alexander Neundorf authored
      STYLE: fix line lengths
      
      Alex
      e4b5de63
  34. 09 May, 2007 2 commits
    • Alexander Neundorf's avatar
      · 8245f437
      Alexander Neundorf authored
      BUG: fix problem for non-C/CXX languages with Visual Studio, the
      dependencies for the custom commands added for java were not handled
      correctly. Needs more work.
      
      Alex
      8245f437
    • Alexander Neundorf's avatar
      · 7f115367
      Alexander Neundorf authored
      ENH: now target names can be used in add_custom_command() and
      add_custom_target() as COMMAND, and cmake will recognize them and replace
      them with the actual output path of these executables. Also the dependency
      will be added automatically. Test included.
      ENH: moved TraceVSDependencies() to the end of GlobalGenerator::Configure(),
      so it is done now in one central place
      
      Alex
      7f115367
  35. 27 Mar, 2007 1 commit