[cmake-developers] Cmake contribution for Open Watcom (patch)

J Decker d3ck0r at gmail.com
Fri Feb 28 17:36:17 EST 2014


THere is 'toolchain' support sort-of in cmake, for selecting targets....

Something else that cmake building is lacking is a working RC compiler
default...

 SET( CMAKE_RC_COMPILER "rc" )

# I dunno; something about floating point, not sure if it's required it's
from long ago... probably because I was linking to stdio sscanf but didn't
use a string that had a %g or %f in it so floating point support wasn't
linkin...
 set( ExtraFlags "${ExtraFlags} /fp5 /fpi87" )


 # this flag is for build dll?  emit DllRuntime startup link
#set( LibraryExtraFlags "-bd" )


 set( ConsoleProgramExtraFlags "-bc" )


 set( WindowsProgramExtraFlags "-bg" )


when adding 'add_executable( target <optional WIN32> ... ) '
there is a marker for wheter to include console or windows runtime (select
main or winmain entry points)

and for add_library( target <optional SHARED> ... ) should add -bd

yes?



On Fri, Feb 28, 2014 at 9:57 AM, Jiri Malak <malak.jiri at gmail.com> wrote:

> Hi,
>
> I would like contribute to CMake for Open Watcom Toolchain.
> Now only WIN32 host and target is supported.
> I plan to add cross-compilation configuration for all supported hosts and target.
> By example enable user on Linux cross compile for DOS/WIN16/win32/OS2
> etc.
>
> I enclosed first fix for existing bug in OW support.
>
> From 503538874023eeddac975eb09660d59f4067fcd9 Mon Sep 17 00:00:00 2001
> From: Jiri Malak <malak.jiri at gmail.com <http://192.168.0.2/posta/src/compose.php?send_to=malak.jiri%40gmail.com>>
> Date: Fri, 28 Feb 2014 18:21:52 +0100
> Subject: [PATCH] Open Watcom Module Windows-wcl386.cmake fix
>
> fix incorrect quoting of library name, now it is double quote instead of incorrect
> single quote
> ---
>  Modules/Platform/Windows-wcl386.cmake | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Modules/Platform/Windows-wcl386.cmake
> b/Modules/Platform/Windows-wcl386.cmake
> index 8a03b29..329e6f0 100644
> --- a/Modules/Platform/Windows-wcl386.cmake
> +++ b/Modules/Platform/Windows-wcl386.cmake
> @@ -40,7 +40,7 @@ set (CMAKE_C_STANDARD_LIBRARIES_INIT "library clbrdll.lib library
> plbrdll.lib  l
>  set (CMAKE_CXX_STANDARD_LIBRARIES_INIT "${CMAKE_C_STANDARD_LIBRARIES_INIT}")
>
>  set(CMAKE_C_CREATE_IMPORT_LIBRARY
> -  "wlib -c -q -n -b <TARGET_IMPLIB> +'<TARGET_UNQUOTED>'")
> +  "wlib -c -q -n -b <TARGET_IMPLIB> +<TARGET_QUOTED>")
>  set(CMAKE_CXX_CREATE_IMPORT_LIBRARY ${CMAKE_C_CREATE_IMPORT_LIBRARY})
>
>  set(CMAKE_C_LINK_EXECUTABLE
> @@ -78,7 +78,7 @@ set(CMAKE_C_CREATE_SHARED_LIBRARY ${CMAKE_CXX_CREATE_SHARED_LIBRARY})
>  set(CMAKE_C_CREATE_SHARED_MODULE ${CMAKE_CXX_CREATE_SHARED_MODULE})
>
>  # create a C++ static library
> -set(CMAKE_CXX_CREATE_STATIC_LIBRARY  "wlib ${CMAKE_LIB_QUIET} -c -n -b
> '<TARGET_UNQUOTED>'
> <LINK_FLAGS> <OBJECTS> ")
> +set(CMAKE_CXX_CREATE_STATIC_LIBRARY  "wlib ${CMAKE_LIB_QUIET} -c -n -b
> <TARGET_QUOTED> <OBJECTS> ")
>
>  # create a C static library
>  set(CMAKE_C_CREATE_STATIC_LIBRARY ${CMAKE_CXX_CREATE_STATIC_LIBRARY})
> --
> 1.8.0.msysgit.0
>
> Regards
>
> Jiri
>
>
>
> --
>
> 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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140228/157df276/attachment-0002.html>


More information about the cmake-developers mailing list