Skip to content

Commit

Permalink
Merge pull request #5 from jstone-lucasfilm/master
Browse files Browse the repository at this point in the history
Additional fixes for OS X build
  • Loading branch information
jstone-lucasfilm committed Jul 14, 2017
2 parents 345aeea + 341d043 commit d774e6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/MaterialXCore/Value.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ template <class T> class ValueRegistry
//

#define INSTANTIATE_TYPE(T, type) \
template <> const string TypedValue<T>::TYPE = type; \
template <> const T TypedValue<T>::ZERO = T(); \
template bool Value::isA<T>() const; \
template T Value::asA<T>() const; \
template const string& getTypeString<T>(); \
template <> const string TypedValue<T>::TYPE = type; \
template <> const T TypedValue<T>::ZERO = T(); \
ValueRegistry<T> registry##T;

INSTANTIATE_TYPE(int, "integer")
Expand Down
2 changes: 2 additions & 0 deletions source/PyMaterialX/PyBind11/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ function(pybind11_add_module target_name)
set_target_properties(${target_name} PROPERTIES PREFIX "")
if(WIN32)
set_target_properties(${target_name} PROPERTIES SUFFIX ".pyd")
elseif(APPLE)
set_target_properties(${target_name} PROPERTIES SUFFIX ".so")
endif()

if(WIN32 OR CYGWIN)
Expand Down

1 comment on commit d774e6e

@jstone-lucasfilm
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #2

Please sign in to comment.