--- a/cmake_modules/CMakePascalInformation.cmake Sun Mar 24 11:11:39 2013 +0100
+++ b/cmake_modules/CMakePascalInformation.cmake Tue Mar 26 01:13:45 2013 +0100
@@ -176,7 +176,7 @@
endif(UNIX)
set(CMAKE_Pascal_COMPILE_OBJECT
- "<CMAKE_Pascal_COMPILER> -Cn -FE${EXECUTABLE_OUTPUT_PATH} -FU${CMAKE_CURRENT_BINARY_DIR}/<OBJECT_DIR> -Fi${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_Pascal_UNIX_FLAGS} <FLAGS> <SOURCE>")
+ "<CMAKE_Pascal_COMPILER> -Cn -FE${EXECUTABLE_OUTPUT_PATH} -FU${CMAKE_CURRENT_BINARY_DIR}/<OBJECT_DIR> ${CMAKE_Pascal_UNIX_FLAGS} <FLAGS> <SOURCE>")
endif(NOT CMAKE_Pascal_COMPILE_OBJECT)
# link Pascal objects in a single executable
--- a/hedgewars/CMakeLists.txt Sun Mar 24 11:11:39 2013 +0100
+++ b/hedgewars/CMakeLists.txt Tue Mar 26 01:13:45 2013 +0100
@@ -12,6 +12,7 @@
enable_language(Pascal)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.inc.in ${CMAKE_CURRENT_BINARY_DIR}/config.inc)
+include_directories(${CMAKE_CURRENT_BINARY_DIR})
if (APPLE)
set(required_fpc_version 2.6)