mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Define BOOST_NO_CXX11_SCOPED_ENUMS in CMake config
This commit is contained in:
+4
-2
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user