git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7876
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
+foreach(file ${simgrid_sources})
+ set_source_files_properties(${file} PROPERTIES COMPILE_FLAGS "/D DLL_EXPORT")
+endforeach(file ${simgrid_sources})
+foreach(file ${gras_sources})
+ set_source_files_properties(${file} PROPERTIES COMPILE_FLAGS "/D DLL_EXPORT")
+endforeach(file ${gras_sources})
if(enable_supernovae AND NOT WIN32)
include(${PROJECT_DIRECTORY}/buildtools/Cmake/Supernovae.cmake)
if(enable_supernovae AND NOT WIN32)
include(${PROJECT_DIRECTORY}/buildtools/Cmake/Supernovae.cmake)
set_target_properties(smpi PROPERTIES VERSION ${libsmpi_version})
endif(enable_smpi)
set_target_properties(smpi PROPERTIES VERSION ${libsmpi_version})
endif(enable_smpi)
-
-set(GRAS_DEP "-lm -lpthread")
-set(SIMGRID_DEP "-lm")
-set(SMPI_DEP "")
-
if(WIN32)
set(GRAS_DEP "wsock32")
set(SIMGRID_DEP "wsock32")
if(WIN32)
set(GRAS_DEP "wsock32")
set(SIMGRID_DEP "wsock32")
+else(WIN32)
+ set(GRAS_DEP "-lm -lpthread")
+ set(SIMGRID_DEP "-lm")
+ set(SMPI_DEP "")
endif(WIN32)
if(HAVE_RUBY)
endif(WIN32)
if(HAVE_RUBY)
#cmakedefine WIN32 @WIN32@
#endif
#ifdef _WIN32
#cmakedefine WIN32 @WIN32@
#endif
#ifdef _WIN32
#define __VISUALC__
#endif
#define __VISUALC__
#endif
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "xbt/misc.h" /* XBT_PUBLIC */
* under the terms of the license (GNU LGPL) which comes with this package. */
#include "xbt/misc.h" /* XBT_PUBLIC */
-#ifdef _WIN32
- #define DLL_EXPORT
+#ifndef DLL_EXPORT
+ #define DLL_IMPORT
#endif
#ifndef SIMGRID_PUBLIC_CONFIG_H
#endif
#ifndef SIMGRID_PUBLIC_CONFIG_H