Skip to content

Commit

Permalink
Specify c++ standard to use for building libktx. (#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 #774 and #656.
  • Loading branch information
MarkCallow authored Nov 29, 2023
1 parent 3f95e54 commit 26d7d3f
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 26d7d3f

Please sign in to comment.