View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004775CMakeCMakepublic2007-04-03 13:532016-06-10 14:30
Reporterphilip 
Assigned ToBill Hoffman 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0004775: cmake -E copy_if_different doesn't preserve case on Win32
DescriptionUsing cmake -E copy_if_different doesn't seem to preserve case for me when used by Win32.

IF(WIN32 AND NOT ${PROJECT_SOURCE_DIR} STREQUAL ${PROJECT_BINARY_DIR} )
    SET(SRC_FILE "${PROJECT_SOURCE_DIR}/LibCigicl/bin/dllDebugMT_DLL/ccl_dll.dll")
    SET(DST_FILE "${PROJECT_BINARY_DIR}/LibCigicl/bin/dllDebugMT_DLL/ccl_dll.dll")

    MESSAGE("Going to copy ${SRC_FILE} to ${DST_FILE}")

    ADD_CUSTOM_COMMAND(
        OUTPUT "${DST_FILE}"
        DEPENDS "${SRC_FILE}"
        COMMAND "${CMAKE_COMMAND}"
        ARGS -E copy_if_different "${SRC_FILE}" "${DST_FILE}")
    ADD_CUSTOM_TARGET(CopyLibCigicl DEPENDS "${DST_FILE}")
ENDIF()

The result is:
libcigicl/bin/dlldebugmt_dll/ccl_dll.dll file

instead of:
LibCigicl/bin/dllDebugMT_DLL/ccl_dll.dll file.

Turns out this isn't a big deal but I still think case should be preserved by copy_if_different for all platforms.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0041352)
Kitware Robot (administrator)
2016-06-10 14:27

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2016-06-10 14:27 Kitware Robot Note Added: 0041352
2016-06-10 14:27 Kitware Robot Status assigned => resolved
2016-06-10 14:27 Kitware Robot Resolution open => moved
2016-06-10 14:30 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team