aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt4
-rw-r--r--cmake/package.cmake2
2 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 76387fb2..0714a02e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -41,6 +41,10 @@ endif ()
include_directories(${CMAKE_SOURCE_DIR})
if(WIN32 OR "${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
+ # This is enough to build with MinGW cross-compiler on OpenSuSE 12.2.
+ # On Ubuntu 12.04 patches to gawk's source code are needed:
+ # - insert #include <windows.h> at the top of awk.h
+ # - remove function execvp from pc/gawkmisc.pc
DefineConfigHValue(HAVE_WCTYPE_T 1)
DefineConfigHValue(WEOF EOF)
DefineConfigHValue(HAVE_USLEEP 1)
diff --git a/cmake/package.cmake b/cmake/package.cmake
index ffea3f04..7bbb1373 100644
--- a/cmake/package.cmake
+++ b/cmake/package.cmake
@@ -26,7 +26,7 @@
IF (WIN32)
SET(CPACK_GENERATOR "NSIS")
- set(CPACK_NSIS_INSTALL_ROOT "C:")
+ set(CPACK_NSIS_INSTALL_ROOT "C:/Programs")
ELSE()
SET(CPACK_GENERATOR "TGZ")
SET(CPACK_PACKAGING_INSTALL_PREFIX /usr)