File: workaround_for_gccxml_bug.cmake

package info (click to toggle)
ompl 0.14.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 35,100 kB
  • ctags: 8,743
  • sloc: cpp: 50,246; python: 3,631; php: 190; sh: 90; makefile: 57
file content (11 lines) | stat: -rw-r--r-- 515 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
# Function to work around a gccxml bug that results in a code that cannot be compiled
#
# For some boost::function's it generates code like this: boost::function<int()(int)>
# This script fixes that, albeit in a very fragile way. This could probably be improved
# by someone with better regexp writing skills.
file(GLOB fnames "${PATH}/*.pypp.*")
foreach(fname ${fnames})
    file(READ ${fname} _text)
    string(REPLACE " ()(" " (" _new_text "${_text}")
    file(WRITE "${fname}" "${_new_text}")
endforeach(fname)