*regarding prior issue; might be because I had not cleaned properly when
changing versions of cmake; because with fix and reinstall, I ended up
duplicating the system nt_dll option *

Should add version ...
also in windows-wcl386.cmake

if(NOT _CMAKE_WATCOM_VERSION)
  set(_CMAKE_WATCOM_VERSION 1)
  if(CMAKE_C_COMPILER_VERSION)
    set(_compiler_version ${CMAKE_C_COMPILER_VERSION})
    set(_compiler_id ${CMAKE_C_COMPILER_ID})
  else()
    set(_compiler_version ${CMAKE_CXX_COMPILER_VERSION})
    set(_compiler_id ${CMAKE_CXX_COMPILER_ID})
  endif()
  set(WATCOM16)
  set(WATCOM17)
  set(WATCOM18)
  set(WATCOM19)
  set(WATCOM20)
  if("${_compiler_id}" STREQUAL "OpenWatcom")
    if("${_compiler_version}" VERSION_LESS 1.7)
      set(WATCOM16 1)
    endif()
    if("${_compiler_version}" VERSION_EQUAL 1.7)
      set(WATCOM17 1)
    endif()
    if("${_compiler_version}" VERSION_EQUAL 1.8)
      set(WATCOM18 1)
    endif()
    if("${_compiler_version}" VERSION_EQUAL 1.9)
      set(WATCOM19 1)
    endif()
    if("${_compiler_version}" VERSION_EQUAL 2.0)
      set(WATCOM20 1)
    endif()
  endif()
endif()


On Sat, Nov 1, 2014 at 4:03 PM, J Decker <[email protected]> wrote:

> wlink uses the option 'system nt_dll' if it builds a DLL; if this is not
> specified, the resulting file generates exceptions.
>
> This was moved from ...
>
> / ---- modules/platform/windows-wcl386.cmake ------
> set(CMAKE_CXX_CREATE_SHARED_LIBRARY
>  "wlink ${CMAKE_START_TEMP_FILE} ${CMAKE_WLINK_QUIET} name <TARGET>
> <LINK_FLAGS> option implib=<TARGET_IMPLIB> file {<OBJECTS>}
> <LINK_LIBRARIES> ${CMAKE_END_TEMP_FILE}")
>
> /------ used to be ----- /
> set(CMAKE_CXX_CREATE_SHARED_MODULE
>  "wlink ${CMAKE_START_TEMP_FILE} system nt_dll  ${CMAKE_WLINK_QUIET} name
> '<TARGET_UNQUOTED>' <LINK_FLAGS> option implib=<TARGET_IMPLIB> option
> caseexact  file {<OBJECTS>} <LINK_LIBRARIES> ${CMAKE_END_TEMP_FILE}")
> ----------------
>
> ... to a variable
>
> CMAKE_SHARED_LINKER_FLAGS_INIT
>
> but I don't see the latter flag ever being used.
>
> So the generator does not output 'system nt_dll' when building shared
> library targets.
>
-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to