From: mquinson Date: Wed, 16 Jun 2010 12:58:03 +0000 (+0000) Subject: Of course we only need to add /D DLL_EXPORT to CFLAGS on windows architectures. Doing... X-Git-Tag: v3_5~929 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3d008a53931619eb52868f1cecf01e38673f20e1?ds=sidebyside 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 --- 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)