Skip to content

Commit

Permalink
in cmake, make PANDORA option force the BFS option to false
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeck88 committed Oct 25, 2014
1 parent 48217f8 commit 419f154
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -83,7 +83,7 @@ option(ENABLE_TESTS "Build unit tests")
option(ENABLE_NLS "Enable building of translations" ON)
option(ENABLE_LOW_MEM "Reduce memory usage by removing extra functionality" OFF)
option(ENABLE_OMP "Enables OpenMP, and has additional dependencies" OFF)
option(ENABLE_PANDORA "Add support for the OpenPandora by deactivating libvorbis support" OFF)
option(ENABLE_PANDORA "Add support for the OpenPandora by deactivating libvorbis support and boost filesystem support, this overrides the boost filesystem option below" OFF)
option(ENABLE_SDL_GPU "Enable building with SDL_gpu (experimental" OFF)
option(ENABLE_BOOST_FILESYSTEM "Enable building with the boost filesystem and boost locale code" ON)

Expand Down
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Expand Up @@ -227,19 +227,19 @@ set(libwesnoth-core_STAT_SRC
serialization/validator.cpp
)

if(ENABLE_BOOST_FILESYSTEM)
if(ENABLE_BOOST_FILESYSTEM AND NOT ENABLE_PANDORA)
set(libwesnoth-core_STAT_SRC
${libwesnoth-core_STAT_SRC}
filesystem_boost.cpp
gettext_boost.cpp
)
else(ENABLE_BOOST_FILESYSTEM)
else(ENABLE_BOOST_FILESYSTEM AND NOT ENABLE_PANDORA)
set(libwesnoth-core_STAT_SRC
${libwesnoth-game_STAT_SRC}
filesystem.cpp
gettext.cpp
)
endif(ENABLE_BOOST_FILESYSTEM)
endif(ENABLE_BOOST_FILESYSTEM AND NOT ENABLE_PANDORA)

# a 'lib' is automatically set in front when creating the library (as in the filename)
# internal reference is the name given here
Expand Down

0 comments on commit 419f154

Please sign in to comment.