Simple CMakeLists.txt, creates some source, links a library and a executable.
Attatched 'cmake -G "Watcom WMake" ..' command line output in an empty
./build direcotry
attached 'wmake VERBOSE=1' output.

have modified the end of Windows.cmake

# uncomment these out to debug nmake and borland makefiles
#SET(CMAKE_START_TEMP_FILE "")
#SET(CMAKE_END_TEMP_FILE "")
SET(CMAKE_VERBOSE_MAKEFILE 1)
SET(VERBOSE 1)






On Sat, Mar 6, 2010 at 6:21 AM, Bill Hoffman <bill.hoff...@kitware.com> wrote:
> J Decker wrote:
>>
>> I see the reference to setting verbose there, but I don't know what
>> else I would edit there. ... enabling the verbosity early doesn't
>> help.
>>
>>
>> CMAKE>Linking C shared library sack_bag.dll
>>
>> /* how do I get this command? what follows is the output from wlink,
>> but no command line ... same thing when I enable RC compiler, I don't
>> get to see the command line...*/
>>
>> Open Watcom Linker Version 1.8
>> Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
>> Source code is available under the Sybase Open Watcom Public License.
>> See http://www.openwatcom.org/ for details.
>> loading object files
>> searching libraries
>> creating a Windows NT dynamic link library
>> CMAKE>[ 89%] Built target sack_bag
>>
>
> If you edit that spot, and do make VERBOSE=1 then you should see what you
> want.
>
> -Bill
>
cmake_minimum_required(VERSION 2.8)


 ADD_CUSTOM_COMMAND(
    OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/main.c
    COMMAND echo int main( void ){return 0\;} > 
${CMAKE_CURRENT_SOURCE_DIR}/main.c
    )

add_library( main_lib ${CMAKE_CURRENT_SOURCE_DIR}/main.c )

add_executable( main_prog ${CMAKE_CURRENT_SOURCE_DIR}/main.c )

Attachment: cmake-output.log
Description: Binary data

Attachment: wmake-output.log
Description: Binary data

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to