Lines 224-259
Link Here
|
224 |
######################################## |
224 |
######################################## |
225 |
# Header Generation # |
225 |
# Header Generation # |
226 |
######################################## |
226 |
######################################## |
227 |
if (NOT EXISTS ${CMAKE_HOME_DIRECTORY}/libltdl/config.h) |
|
|
228 |
if (UNIX) |
229 |
message("-- Configuring libltdl using \"libltdl/configure\" ...") |
230 |
execute_process( |
231 |
COMMAND ${CMAKE_HOME_DIRECTORY}/libltdl/configure |
232 |
WORKING_DIRECTORY ${CMAKE_HOME_DIRECTORY}/libltdl |
233 |
OUTPUT_QUIET |
234 |
) |
235 |
else () |
236 |
file(WRITE ${CMAKE_HOME_DIRECTORY}/libltdl/config.h |
237 |
"/* WARNING: Generated by GG's build system. All local changes will be lost! */ |
238 |
#define error_t int |
239 |
#define HAVE_STDIO_H 1 |
240 |
#define HAVE_STDLIB_H 1 |
241 |
#define HAVE_STRING_H 1 |
242 |
#define HAVE_CTYPE_H 1 |
243 |
#define HAVE_MEMORY_H 1 |
244 |
#define HAVE_ERRNO_H 1 |
245 |
#define __WIN32__ |
246 |
#define HAVE_MEMCPY 1 |
247 |
#define HAVE_MEMMOVE 1 |
248 |
#define LTDL_OBJDIR \".libs\" |
249 |
#define LTDL_DLOPEN_DEPLIBS 1 |
250 |
#define LTDL_SHLIBPATH_VAR \"PATH\" |
251 |
#define LTDL_SHLIB_EXT \".dll\" |
252 |
" |
253 |
) |
254 |
endif () |
255 |
endif () |
256 |
|
257 |
configure_file( |
227 |
configure_file( |
258 |
${CMAKE_HOME_DIRECTORY}/cmake/Config.h.in |
228 |
${CMAKE_HOME_DIRECTORY}/cmake/Config.h.in |
259 |
${CMAKE_HOME_DIRECTORY}/GG/Config.h |
229 |
${CMAKE_HOME_DIRECTORY}/GG/Config.h |