View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011014CMakeCMakepublic2010-07-20 12:202011-01-12 07:33
ReporterEric Huhtala 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.4Fixed in VersionCMake 2.8.4 
Summary0011014: missing dependency on def file for nmake
DescriptionWhen I look at the dll dependencies in the generated nmake files, there's no line for the def file, so editing the def file doesn't cause the dll to be relinked.

The link line does have "/def:myLib.def" as I'd expect.
Additional InformationThis is what my CMakeLists.txt file looks like

# requiredFiles is a list of c++ files
if (WIN32)
    set (requiredFiles ${requiredFiles} myLib.def)
endif (WIN32)

add_library(myLib SHARED ${requiredFiles})

install(TARGETS myLib DESTINATION ${INSTALL_DIR})

Tagsdef, depend, dependency, nmake
Attached Filespatch file icon 0011014.patch [^] (663 bytes) 2010-08-12 10:40 [Show Content]

 Relationships

  Notes
(0021718)
Eric Huhtala (reporter)
2010-08-11 17:04
edited on: 2010-08-11 17:05

I found a work around that works for me for now:

add_custom_target(def_dependency
    COMMAND del "\"${CMAKE_CURRENT_BINARY_DIR}\\myLib.dll\"" > CMakeFiles\def_dependency
    DEPENDS myLib.def
    )

(0021734)
Eric Huhtala (reporter)
2010-08-12 10:43

I just attached 0011014.patch which fixed the issue for me. I wasn't sure if this was the appropriate method to submit a patch. If there's something else I should do, could someone please let me know?
(0024163)
Brad King (manager)
2010-12-15 11:33

I rebased the patch since the code it touches moved. Applied, thanks:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3e279971 [^]

 Issue History
Date Modified Username Field Change
2010-07-20 12:20 Eric Huhtala New Issue
2010-07-20 12:22 Eric Huhtala Tag Attached: def
2010-07-20 12:22 Eric Huhtala Tag Attached: depend
2010-07-20 12:22 Eric Huhtala Tag Attached: dependency
2010-07-20 12:22 Eric Huhtala Tag Attached: nmake
2010-08-11 17:04 Eric Huhtala Note Added: 0021718
2010-08-11 17:05 Eric Huhtala Note Edited: 0021718
2010-08-12 10:40 Eric Huhtala File Added: 0011014.patch
2010-08-12 10:43 Eric Huhtala Note Added: 0021734
2010-12-15 10:58 David Cole Assigned To => Brad King
2010-12-15 10:58 David Cole Status new => assigned
2010-12-15 11:33 Brad King Note Added: 0024163
2010-12-15 11:33 Brad King Status assigned => closed
2010-12-15 11:33 Brad King Resolution open => fixed
2011-01-12 07:33 David Cole Fixed in Version => CMake 2.8.4
2011-01-12 07:33 David Cole Target Version => CMake 2.8.4


Copyright © 2000 - 2018 MantisBT Team