Fix linux builds not installing the header files

develop
Petr Mrázek 2011-03-20 02:06:50 +01:00
parent 467c50e97d
commit c06df18ea7
2 changed files with 8 additions and 3 deletions

@ -204,9 +204,11 @@ install(TARGETS dfhack
install(FILES ${CMAKE_SOURCE_DIR}/Memory.xml install(FILES ${CMAKE_SOURCE_DIR}/Memory.xml
DESTINATION ${DFHACK_DATA_DESTINATION}) #linux: share/dfhack DESTINATION ${DFHACK_DATA_DESTINATION}) #linux: share/dfhack
if(WIN32 AND BUILD_DFHACK_DEVEL) if(BUILD_DFHACK_DEVEL)
install(TARGETS dfhack if(WIN32)
ARCHIVE DESTINATION ${DFHACK_DEVLIB_DESTINATION}) install(TARGETS dfhack
ARCHIVE DESTINATION ${DFHACK_DEVLIB_DESTINATION})
endif()
install(DIRECTORY ${CMAKE_SOURCE_DIR}/library/include/ install(DIRECTORY ${CMAKE_SOURCE_DIR}/library/include/
DESTINATION ${DFHACK_INCLUDES_DESTINATION} DESTINATION ${DFHACK_INCLUDES_DESTINATION}
FILES_MATCHING PATTERN "*.h" ) #linux: include FILES_MATCHING PATTERN "*.h" ) #linux: include

@ -1,4 +1,7 @@
#!/bin/sh #!/bin/sh
echo "Setting required kernel parameters." echo "Setting required kernel parameters."
# I actually do it three times, hoping to hammer this into Ubuntu's dense skull.
sysctl -w kernel.randomize_va_space=0 sysctl -w kernel.randomize_va_space=0
sysctl -w kernel.yama.ptrace_scope=0 sysctl -w kernel.yama.ptrace_scope=0
echo "kernel.randomize_va_space=0" >> /etc/sysctl.conf
echo "kernel.yama.ptrace_scope=0" >> /etc/sysctl.conf