Assume long long support by default (don't rely on fancy CMake CXX_STANDARD)

This commit is contained in:
Paul Romano 2017-04-10 19:39:08 -05:00
parent c39990accb
commit 7d3b049fba
2 changed files with 1 additions and 7 deletions

View file

@ -235,12 +235,6 @@ endif()
#===============================================================================
add_library(pugixml src/pugixml/pugixml_c.cpp src/pugixml/pugixml.cpp)
if(CMAKE_VERSION VERSION_LESS 3.1)
target_compile_options(pugixml PRIVATE -std=c++11)
else()
set_property(TARGET pugixml PROPERTY CXX_STANDARD 11)
endif()
add_library(pugixml_fortran src/pugixml/pugixml_f.F90)
target_link_libraries(pugixml_fortran pugixml)

View file

@ -44,7 +44,7 @@
// #define PUGIXML_HEADER_ONLY
// Uncomment this to enable long long support
// #define PUGIXML_HAS_LONG_LONG
#define PUGIXML_HAS_LONG_LONG
#endif