Skip to content

Commit

Permalink
Only enable cxx_long_long_type if it is in the list of features
Browse files Browse the repository at this point in the history
Fixes #99.
  • Loading branch information
zeux committed Jun 18, 2016
1 parent eec353c commit 4dbb564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -41,7 +41,7 @@ else()
endif()

# Enable C++11 long long for compilers that are capable of it
if(NOT ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} STRLESS 3.1)
if(NOT ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} STRLESS 3.1 AND ";${CMAKE_CXX_COMPILE_FEATURES};" MATCHES ";cxx_long_long_type;")
target_compile_features(pugixml PUBLIC cxx_long_long_type)
endif()

Expand Down

0 comments on commit 4dbb564

Please sign in to comment.