File: fix_osx_xrc.cmake

package info (click to toggle)
hugin 2018.0.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 30,824 kB
  • sloc: cpp: 119,141; ansic: 6,270; python: 1,517; perl: 565; sh: 121; xml: 102; makefile: 32
file content (7 lines) | stat: -rwxr-xr-x 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}")