Try to fix Debian/Fedora build

This commit is contained in:
Přemysl Eric Janouch 2016-03-14 20:45:46 +01:00
parent 783b744e8b
commit 1fd2cb3eaa
1 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ project (termo C)
cmake_minimum_required (VERSION 2.8.5) cmake_minimum_required (VERSION 2.8.5)
if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUC) if ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUC)
set (CMAKE_C_FLAGS "-std=c99") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Wextra") set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -Wextra")
endif ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUC) endif ("${CMAKE_C_COMPILER_ID}" MATCHES "GNU" OR CMAKE_COMPILER_IS_GNUC)
@ -52,9 +52,9 @@ if (unibilium_FOUND)
include_directories (${unibilium_INCLUDE_DIRS}) include_directories (${unibilium_INCLUDE_DIRS})
set (lib_libraries ${unibilium_LIBRARIES}) set (lib_libraries ${unibilium_LIBRARIES})
add_definitions (-DHAVE_UNIBILIUM) add_definitions (-DHAVE_UNIBILIUM)
elseif (ncursesw_FOUND) elseif (NCURSESW_FOUND)
include_directories (${ncursesw_INCLUDE_DIRS}) include_directories (${NCURSESW_INCLUDE_DIRS})
set (lib_libraries ${ncursesw_LIBRARIES}) set (lib_libraries ${NCURSESW_LIBRARIES})
elseif (CURSES_FOUND) elseif (CURSES_FOUND)
include_directories (${CURSES_INCLUDE_DIR}) include_directories (${CURSES_INCLUDE_DIR})
set (lib_libraries ${CURSES_LIBRARY}) set (lib_libraries ${CURSES_LIBRARY})