1
0
Fork 0

FGCom standalone: search *.txt as relative path

This commit is contained in:
Clément de l'Hamaide 2013-09-28 22:44:55 +02:00
parent 52e5a9abe8
commit 5d17864d30

View file

@ -5,10 +5,10 @@
# then to define the files themselves, in their 'installed'
# location, not their source location...
if (NOT DEFAULT_POSITIONS_FILE)
set(DEFAULT_POSITIONS_FILE "${PKGDATAPATH}/positions.txt")
set(DEFAULT_POSITIONS_FILE "../share/flightgear/positions.txt")
endif ()
if (NOT SPECIAL_FREQUENCIES_FILE)
set(SPECIAL_FREQUENCIES_FILE "${PKGDATAPATH}/special_frequencies.txt")
set(SPECIAL_FREQUENCIES_FILE "../share/flightgear/special_frequencies.txt")
endif ()
# pass these to the compiler
add_definitions( -DDEFAULT_POSITIONS_FILE="${DEFAULT_POSITIONS_FILE}" )