Skip to content

Commit

Permalink
Merge pull request #5354 from whalley/master
Browse files Browse the repository at this point in the history
fix(#5302): Non-win build options
  • Loading branch information
whalley committed Nov 21, 2022
2 parents 77235ed + 8d0a596 commit f725384
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions 3rd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ if(NOT wxSQLite3_FOUND OR NOT (WXSQLITE3_HAVE_CODEC OR MMEX_ENCRYPTION_OPTIONAL)
endif()

if(NOT MSVC) # wxSQLite3 security ext doesn't require C 99 for MSVC
set (CMAKE_C_FLAGS "-msse4.2 -maes")
if(";${CMAKE_C_COMPILE_FEATURES};" MATCHES ";c_std_99;")
target_compile_features(SQLite3 PRIVATE c_std_99)
elseif(";${CMAKE_C_COMPILE_FEATURES};" MATCHES ";c_restrict;")
Expand Down

0 comments on commit f725384

Please sign in to comment.