Skip to content

Commit

Permalink
Specify c++ standard to use for building libktx. (KhronosGroup#806)
Browse files Browse the repository at this point in the history
Avoid inadvertent compilation with a later standard
when included in another project. Later standards may
raise warnings or even errors on the library code. 

Fixes KhronosGroup#774 and KhronosGroup#656.
  • Loading branch information
MarkCallow authored Nov 29, 2023
1 parent 482d2dc commit be35216
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,9 @@ macro(common_libktx_settings target enable_write library_type)
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION_MAJOR}
XCODE_ATTRIBUTE_ENABLE_HARDENED_RUNTIME "YES"
CXX_STANDARD 11
CXX_STANDARD_REQUIRED YES

)
if(IOS)
set_target_properties(${target} PROPERTIES
Expand Down

0 comments on commit be35216

Please sign in to comment.