[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, cmake, updated. 1eade34854d9bfa858ffd2aa
From: |
Juergen Kahrs |
Subject: |
[gawk-diffs] [SCM] gawk branch, cmake, updated. 1eade34854d9bfa858ffd2aa44cd1f5baf5951f8 |
Date: |
Mon, 11 Feb 2013 08:11:36 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, cmake has been updated
via 1eade34854d9bfa858ffd2aa44cd1f5baf5951f8 (commit)
from 79c0ad1fe45d4f14e21d4f2f984f6b4c7c83fdae (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=1eade34854d9bfa858ffd2aa44cd1f5baf5951f8
commit 1eade34854d9bfa858ffd2aa44cd1f5baf5951f8
Author: Juergen Kahrs <address@hidden>
Date: Mon Feb 11 09:11:27 2013 +0100
Preparations for proper handling of bison, gettext and latex.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f67d3d1..d76f834 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -217,6 +217,21 @@ DefineFunctionIfAvailable(mbrtowc HAVE_MBRTOWC)
add_definitions(-D HAVE_STRINGIZE)
add_definitions(-D _Noreturn=)
+find_package(BISON REQUIRED)
+if (${BISON_FOUND} STREQUAL "TRUE")
+ BISON_TARGET(awkgram awkgram.y ${CMAKE_SOURCE_DIR}/awkgram.c)
+endif()
+#http://www.cmake.org/cmake/help/v2.8.10/cmake.html#module:FindGettext
+find_package(Gettext REQUIRED)
+if (GETTEXT_FOUND STREQUAL "TRUE")
+ include_directories(${GETTEXT_INCLUDE_DIR})
+else ()
+ message( FATAL_ERROR "Gettext not found" )
+endif()
+find_package(LATEX)
+include(GNUInstallDirs)
+include(GetPrerequisites)
+
set (EXTRA_LIBS "")
DefineLibraryIfAvailable(m sin "" HAVE_LIBM)
@@ -273,7 +288,7 @@ set (GAWK_SOURCES ${GAWK_SOURCES}
version.c
)
-add_executable (gawk ${GAWK_SOURCES})
+add_executable (gawk ${GAWK_SOURCES} ${BISON_awkgram_OUTPUTS})
target_link_libraries (gawk m ${EXTRA_LIBS})
set(CPACK_PACKAGING_INSTALL_PREFIX /usr)
install(PROGRAMS ${CMAKE_BINARY_DIR}/gawk DESTINATION bin)
@@ -284,7 +299,9 @@ add_subdirectory(extension)
if(NOT ${CMAKE_CROSSCOMPILING} STREQUAL "TRUE")
enable_testing()
add_subdirectory(test)
- add_subdirectory(doc)
+ if (${LATEX_COMPILER})
+ add_subdirectory(doc)
+ endif()
endif()
include(InstallRequiredSystemLibraries)
-----------------------------------------------------------------------
Summary of changes:
CMakeLists.txt | 21 +++++++++++++++++++--
1 files changed, 19 insertions(+), 2 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, cmake, updated. 1eade34854d9bfa858ffd2aa44cd1f5baf5951f8,
Juergen Kahrs <=