File: fix_osx_xrc.cmake

package info (click to toggle)
hugin 2010.0.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 32,096 kB
  • ctags: 17,086
  • sloc: cpp: 85,561; ansic: 6,331; perl: 498; sh: 270; makefile: 117; java: 29; python: 10; xml: 9
file content (7 lines) | stat: -rw-r--r-- 409 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
# Replace the wxNotebook and associated XRC wx elements from the passed file
MESSAGE("Patching XRC elements for OSX")
FILE(READ ${file} _contents)
STRING(REPLACE wxNotebook wxChoice _contents "${_contents}")
STRING(REPLACE cp_editor_left_tab cp_editor_left_choice _contents "${_contents}")
STRING(REPLACE cp_editor_right_tab cp_editor_right_choice _contents "${_contents}")
FILE(WRITE ${file} "${_contents}")