1 # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 # file Copyright.txt or https://cmake.org/licensing for details.
6 # Disable warnings to avoid changing 3rd party code.
7 if(CMAKE_C_COMPILER_ID MATCHES
8 "^(GNU|LCC|Clang|AppleClang|IBMClang|XLClang|XL|VisualAge|SunPro|HP|Intel|IntelLLVM|NVHPC)$")
9 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
10 elseif(CMAKE_C_COMPILER_ID STREQUAL "PathScale")
11 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -woffall")
14 configure_file(cmFormConfigure.h.in "${CMAKE_CURRENT_BINARY_DIR}/cmFormConfigure.h")
58 target_include_directories(cmForm
60 ${CURSES_INCLUDE_PATH}
61 ${CMAKE_FORM_BINARY_DIR}
62 ${CMAKE_FORM_SOURCE_DIR}
65 target_link_libraries(cmForm ${CURSES_LIBRARY})
67 if(CURSES_EXTRA_LIBRARY)
68 target_link_libraries(cmForm ${CURSES_EXTRA_LIBRARY})