[cmake-developers] [CMake 0011919]: PRE_LINK custom command is not working to generate .DEF files

Mantis Bug Tracker mantis at public.kitware.com
Wed Mar 2 17:09:02 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11919 
====================================================================== 
Reported By:                Pere Mato
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11919
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-03-02 17:09 EST
Last Modified:              2011-03-02 17:09 EST
====================================================================== 
Summary:                    PRE_LINK custom command is not working to generate
.DEF files
Description: 
Migrating from CMake 2.8.3 to 2.8.4 makes the following example to fail with 
NMAKE : fatal error U1073: don't know how to make 'gen.def'

Steps to Reproduce: 
cmake_minimum_required(VERSION 2.6 FATAL_ERROR)

add_library(mylib SHARED foo.cxx gen.def)
set_source_files_properties(gen.def PROPERTIES GENERATED 1)
add_custom_command(TARGET mylib PRE_LINK
                   COMMAND copy 
                   ARGS ${CMAKE_CURRENT_SOURCE_DIR}/bar.def gen.def )
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-03-02 17:09 Pere Mato      New Issue                                    
======================================================================




More information about the cmake-developers mailing list