Define BOOST_NO_CXX11_SCOPED_ENUMS in CMake config

This commit is contained in:
Oliver Hamlet
2016-07-13 20:47:22 +01:00
parent b236c83801
commit 083adb2b9e
4 changed files with 4 additions and 17 deletions
+4 -2
View File
@@ -318,9 +318,11 @@ include_directories ("${CMAKE_SOURCE_DIR}/src"
# System-Specific Settings
##############################
# If building on Travis, set a preprocessor definition.
# If building on Travis, define BOOST_NO_CXX11_SCOPED_ENUMS to avoid
# boost::filesystem::copy_file() linking errors due to mismatched C++ runtimes
# between Boost and LOOT.
IF ($ENV{TRAVIS})
add_definitions (-DTRAVIS)
add_definitions (-DBOOST_NO_CXX11_SCOPED_ENUMS)
ENDIF ()
# Settings when compiling for Windows.
-5
View File
@@ -22,11 +22,6 @@
<http://www.gnu.org/licenses/>.
*/
#ifdef TRAVIS
#pragma message("This is a Travis build, so defining BOOST_NO_CXX11_SCOPED_ENUMS to avoid boost::filesystem::copy_file() linking errors.")
#define BOOST_NO_CXX11_SCOPED_ENUMS
#endif
#include <gtest/gtest.h>
#include "loot_apply_load_order_test.h"
-5
View File
@@ -22,11 +22,6 @@
<http://www.gnu.org/licenses/>.
*/
#ifdef TRAVIS
#pragma message("This is a Travis build, so defining BOOST_NO_CXX11_SCOPED_ENUMS to avoid boost::filesystem::copy_file() linking errors.")
#define BOOST_NO_CXX11_SCOPED_ENUMS
#endif
#include "tests/api/loot_db_test.h"
#include "app/loot_paths_test.h"
-5
View File
@@ -22,11 +22,6 @@
<http://www.gnu.org/licenses/>.
*/
#ifdef TRAVIS
#pragma message("This is a Travis build, so defining BOOST_NO_CXX11_SCOPED_ENUMS to avoid boost::filesystem::copy_file() linking errors.")
#define BOOST_NO_CXX11_SCOPED_ENUMS
#endif
#include "backend/app/loot_version.h"
#include "backend/metadata_list.h"