From 3d008a53931619eb52868f1cecf01e38673f20e1 Mon Sep 17 00:00:00 2001 From: mquinson Date: Wed, 16 Jun 2010 12:58:03 +0000 Subject: [PATCH] Of course we only need to add /D DLL_EXPORT to CFLAGS on windows architectures. Doing so without condition breaks unix builds, pity git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7880 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- buildtools/Cmake/MakeExeLib.cmake | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/buildtools/Cmake/MakeExeLib.cmake b/buildtools/Cmake/MakeExeLib.cmake index 0c08e0ebf6..eb95771a55 100644 --- a/buildtools/Cmake/MakeExeLib.cmake +++ b/buildtools/Cmake/MakeExeLib.cmake @@ -1,10 +1,12 @@ ### Make Libs -foreach(file ${simgrid_sources}) +if(WIN32) + foreach(file ${simgrid_sources}) set_source_files_properties(${file} PROPERTIES COMPILE_FLAGS "/D DLL_EXPORT") -endforeach(file ${simgrid_sources}) -foreach(file ${gras_sources}) + endforeach(file ${simgrid_sources}) + foreach(file ${gras_sources}) set_source_files_properties(${file} PROPERTIES COMPILE_FLAGS "/D DLL_EXPORT") -endforeach(file ${gras_sources}) + endforeach(file ${gras_sources}) +endif(WIN32) if(enable_supernovae AND NOT WIN32) include(${PROJECT_DIRECTORY}/buildtools/Cmake/Supernovae.cmake) -- 2.20.1