Build: Move CMAKE_USE_WMAKE definition to cmConfigure.cmake.h.in

This commit is contained in:
Alex Turbov
2022-08-21 06:01:17 +04:00
committed by Brad King
parent 9a24c648eb
commit ae174f0dea
2 changed files with 7 additions and 2 deletions

View File

@@ -31,6 +31,11 @@ if(CMAKE_SYSTEM_NAME STREQUAL "AIX")
set(CMake_USE_XCOFF_PARSER 1)
endif()
# Watcom support
if(WIN32 OR CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(CMAKE_USE_WMAKE 1)
endif()
set(EXECUTABLE_OUTPUT_PATH ${CMake_BIN_DIR})
if(WIN32)
@@ -861,8 +866,7 @@ if(WIN32)
endif()
# Watcom support
if(WIN32 OR CMAKE_SYSTEM_NAME STREQUAL "Linux" OR CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set_property(SOURCE cmake.cxx APPEND PROPERTY COMPILE_DEFINITIONS CMAKE_USE_WMAKE)
if(CMAKE_USE_WMAKE)
target_sources(
CMakeLib
PUBLIC

View File

@@ -22,6 +22,7 @@
#cmakedefine HAVE_UNSETENV
#cmakedefine CMake_USE_MACH_PARSER
#cmakedefine CMake_USE_XCOFF_PARSER
#cmakedefine CMAKE_USE_WMAKE
#define CMake_DEFAULT_RECURSION_LIMIT @CMake_DEFAULT_RECURSION_LIMIT@
#define CMAKE_BIN_DIR "/@CMAKE_BIN_DIR@"
#define CMAKE_DATA_DIR "/@CMAKE_DATA_DIR@"