diff options
Diffstat (limited to 'Utilities/cmexpat/CMakeLists.txt')
-rw-r--r-- | Utilities/cmexpat/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Utilities/cmexpat/CMakeLists.txt b/Utilities/cmexpat/CMakeLists.txt index b8dc4e8..ce72927 100644 --- a/Utilities/cmexpat/CMakeLists.txt +++ b/Utilities/cmexpat/CMakeLists.txt @@ -1,12 +1,14 @@ # Disable warnings to avoid changing 3rd party code. IF(CMAKE_C_COMPILER_ID MATCHES - "^(GNU|Clang|AppleClang|XLClang|XL|VisualAge|SunPro|HP|Intel|IntelLLVM)$") + "^(GNU|Clang|AppleClang|XLClang|XL|VisualAge|SunPro|HP|Intel|IntelLLVM|NVHPC)$") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w") ELSEIF(CMAKE_C_COMPILER_ID STREQUAL "PathScale") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -woffall") ENDIF() include(ConfigureChecks.cmake) +configure_file(expat_config.h.cmake expat_config.h @ONLY) + if(NOT WIN32) add_definitions(-DXML_DEV_URANDOM) endif() |