Ver Fonte

OpenWatcom: Partially modernize platform information modules

Migrate from the old `<os>-<cc>.cmake` layout to the modern
`<os>-<id>-<lang>.cmake` layout.  Keep settings common to C and C++ in a
`Windows-OpenWatcom.cmake` helper module with an include blocker.
For now just add both C and CXX settings in the helper module.
Brad King há 9 anos atrás
pai
commit
cdde77e5f6

+ 1 - 0
Modules/Platform/Windows-OpenWatcom-C.cmake

@@ -0,0 +1 @@
+include(Platform/Windows-OpenWatcom)

+ 1 - 0
Modules/Platform/Windows-OpenWatcom-CXX.cmake

@@ -0,0 +1 @@
+include(Platform/Windows-OpenWatcom)

+ 20 - 0
Modules/Platform/Windows-wcl386.cmake → Modules/Platform/Windows-OpenWatcom.cmake

@@ -1,3 +1,23 @@
+
+#=============================================================================
+# Copyright 2002-2016 Kitware, Inc.
+#
+# Distributed under the OSI-approved BSD License (the "License");
+# see accompanying file Copyright.txt for details.
+#
+# This software is distributed WITHOUT ANY WARRANTY; without even the
+# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+# See the License for more information.
+#=============================================================================
+# (To distribute this file outside of CMake, substitute the full
+#  License text for the above reference.)
+
+# This module is shared by multiple languages; use include blocker.
+if(__WINDOWS_OPENWATCOM)
+  return()
+endif()
+set(__WINDOWS_OPENWATCOM 1)
+
 set(CMAKE_LIBRARY_PATH_FLAG "libpath ")
 set(CMAKE_LINK_LIBRARY_FLAG "library ")
 set(CMAKE_LINK_LIBRARY_FILE_FLAG "library")

+ 1 - 0
Modules/Platform/Windows-Watcom-C.cmake

@@ -0,0 +1 @@
+include(Platform/Windows-OpenWatcom-C)

+ 1 - 0
Modules/Platform/Windows-Watcom-CXX.cmake

@@ -0,0 +1 @@
+include(Platform/Windows-OpenWatcom-CXX)