Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Of course we only need to add /D DLL_EXPORT to CFLAGS on windows architectures. Doing...
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 16 Jun 2010 12:58:03 +0000 (12:58 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 16 Jun 2010 12:58:03 +0000 (12:58 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7880 48e7efb5-ca39-0410-a469-dd3cf9ba447f

buildtools/Cmake/MakeExeLib.cmake

index 0c08e0e..eb95771 100644 (file)
@@ -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)