[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebindings/cmake/modules
From:       Arno Rehn <kde () arnorehn ! de>
Date:       2010-04-26 16:41:50
Message-ID: 20100426164150.5A862AC8A4 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1119133 by arnorehn:

set the _assembly property for executable targets, too, so we can link against them


 M  +2 -1      CMakeCSharpInformation.cmake  


--- trunk/KDE/kdebindings/cmake/modules/CMakeCSharpInformation.cmake #1119132:1119133
@@ -170,6 +170,7 @@
                        DEPENDS ${cmake_file_list}
                        COMMENT "Building ${relative_path}" VERBATIM) # nice comment
     add_custom_target(${target} ALL DEPENDS "${outdir}/${target}.stubexe" SOURCES \
${cmake_file_list}) # create the actual target +    set_property(TARGET ${target} \
PROPERTY _assembly "${native_target}.exe")  if (deps)
         add_dependencies(${target} ${deps})
     endif(deps)
@@ -263,7 +264,7 @@
 
     add_custom_command(OUTPUT "${outdir}/${target}.dll"
                        COMMAND "${CMAKE_COMMAND}" -E make_directory "${outdir}" # \
                create the output dir
-                       COMMAND "${CMAKE_CSharp_COMPILER}" /nologo /target:library \
"/out:${native_target}.dll" # build the executable +                       COMMAND \
"${CMAKE_CSharp_COMPILER}" /nologo /target:library "/out:${native_target}.dll" # \
                build the library
                                                         ${_csc_opts} ${unsafe} \
                ${references} ${compiler_file_list}
                        WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" # working \
directory is the source directory, so we don't have to care about relative paths  \
DEPENDS ${cmake_file_list}


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic