star-sp

Random number generators and distributions
git clone git://git.meso-star.fr/star-sp.git
Log | Files | Refs | README | LICENSE

commit 5fd60d2065db390a2cebc718426f2c9af66111c9
parent 2cbd58067145abe8030e97cab18caca5c0a69296
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Mon,  9 Jul 2018 15:46:26 +0200

Disable the -Wexpansion-to-defined GCC warning emits by Random123

Diffstat:
Mcmake/CMakeLists.txt | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -29,7 +29,7 @@ # The fact that you are presently reading this means that you have had # knowledge of the CeCILL license and that you accept its terms. -cmake_minimum_required(VERSION 2.8) +cmake_minimum_required(VERSION 3.0) project(star-sp C CXX) enable_testing() @@ -98,6 +98,12 @@ rcmake_prepend_path(SSP_FILES_INC_API ${SSP_SOURCE_DIR}) rcmake_prepend_path(SSP_FILES_DOC ${PROJECT_SOURCE_DIR}/../) set_source_files_properties(${SSP_FILES_SRC} PROPERTIES LANGUAGE CXX) +if(CMAKE_COMPILER_IS_GNUCXX) + # Random123 warning that cannot be disabled by a GCC pragma + set_source_files_properties(${SSP_SOURCE_DIR}/ssp_rng.c PROPERTIES + COMPILE_FLAGS "-Wno-expansion-to-defined") +endif() + add_library(ssp SHARED ${SSP_FILES_SRC} ${SSP_FILES_INC} ${SSP_FILES_INC_API}) set_target_properties(ssp PROPERTIES DEFINE_SYMBOL SSP_SHARED_BUILD