Skip to content

Commit

Permalink
Add CheckCCompilerFlag module
Browse files Browse the repository at this point in the history
  • Loading branch information
runlevel5 committed Apr 3, 2024
1 parent d1cf099 commit f60aa06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ if(NOT WIN32)
add_compile_definitions(_GNU_SOURCE)
endif()

include(CheckCCompilerFlag)
# Check whether compiler supports 'flagstr', and if so, set ${flagvar} to that value
function(CCompilerFlagString flagvar flagstr)
CHECK_C_COMPILER_FLAG("${flagstr}" ${flagvar}_FOUND)
Expand Down

0 comments on commit f60aa06

Please sign in to comment.