Skip to content
Snippets Groups Projects
Commit eadd3777 authored by Lars Bilke's avatar Lars Bilke
Browse files

[CMake] Flag -fext-numeric-literals is valid only for C++.

parent 6a1ab259
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ if(COMPILER_IS_GCC OR COMPILER_IS_CLANG OR COMPILER_IS_INTEL) ...@@ -83,7 +83,7 @@ if(COMPILER_IS_GCC OR COMPILER_IS_CLANG OR COMPILER_IS_INTEL)
required! Found version ${CMAKE_CXX_COMPILER_VERSION}.") required! Found version ${CMAKE_CXX_COMPILER_VERSION}.")
endif() endif()
endif() endif()
add_compile_options(-fext-numeric-literals) add_compile_options($<$<COMPILE_LANGUAGE:CXX>:-fext-numeric-literals>)
include(GCCSanitizer) include(GCCSanitizer)
endif() endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment