Commit 7c26b1c1 authored by Christopher Bruns's avatar Christopher Bruns
Browse files

Preemptively added OPENMM_EXPORT to registerPlatforms() declaration of OpenCL platform, for the

day when we try it on Windows.
Added "-isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5" to Mac compile flags,
to possibly help run on Leopard.
parent 338729a9
......@@ -94,8 +94,8 @@ ENDIF( CMAKE_SIZEOF_VOID_P EQUAL 8 )
# Build 32 bit binaries, since CUDA doesn't currently work with 64 bit
IF (APPLE)
SET (CMAKE_CXX_FLAGS "-arch i386")
SET (CMAKE_C_FLAGS "-arch i386")
SET (CMAKE_CXX_FLAGS "-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5")
SET (CMAKE_C_FLAGS "-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5")
ENDIF (APPLE)
IF(UNIX AND NOT CMAKE_BUILD_TYPE)
......
......@@ -38,7 +38,7 @@ using std::map;
using std::string;
using std::stringstream;
extern "C" void registerPlatforms() {
extern "C" OPENMM_EXPORT void registerPlatforms() {
Platform::registerPlatform(new OpenCLPlatform());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment