#Toolchain file using the Watcom "wcl" compiler and nasm assembler to generate 16-bit DOS programs. #This file has been generated from the file #osd/openwatcom/1.0/src/toolchain-template.txt #Do not modify. Modifications will be overwritten when this file is regenerated. #Allows us to use the "wcl" watcom compiler with cmake. set (CMAKE_SYSTEM_NAME "@TOOLCHAIN_SYSTEM_NAME@") #Windows etc set (CMAKE_SYSTEM_VERSION "@TOOLCHAIN_SYSTEM_VERSION@") #xx.yy set (CMAKE_SYSTEM_PROCESSOR "@TOOLCHAIN_SYSTEM_PROCESSOR@") #AMD64/ARM set (CMAKE_C_COMPILER "@TOOLCHAIN_C_EXECUTABLE@") #Full path of the compiler launcher that launches wcl after setting up environment #See https://stackoverflow.com/questions/49763259/cmake-custom-toolchain-cmake-ar-and-cmake-cxx-archive-create #and http://kwwidgets.org/Bug/view.php?id=13038 # #SUMMARY: # #At this point, CMAKE_AR,CMAKE_RANLIB,CMAKE_STRIP,CMAKE_LINKER,CMAKE_NM, #CMAKE_OBJDUMP and CMAKE_OBJCOPY have all been initialized in the cmake cache #by calls to find_program(). find_program() has (by design) cached these #values, so any modifications must be FORCEd into the cache. See the function #__resolve_tool_path() in the CMake-distributed file #C:\Program Files\CMake\share\cmake-3.15\Modules\CMakeFindBinUtils.cmake set (CMAKE_AR "@TOOLCHAIN_AR_EXECUTABLE@" CACHE FILEPATH "" FORCE) #Full path of the librarian launch script set (CMAKE_LINKER "@TOOLCHAIN_LINKER_EXECUTABLE@" CACHE FILEPATH "" FORCE) #Full path of the linker launch script set (CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)