Permalink
Browse files

Use the CMake supplied source dir if available.

  • Loading branch information...
1 parent 4f1c6bd commit 53826c66c4cb59598eba599c7b9942310f464c5e @ignacio committed Sep 29, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/luanode.cpp
View
@@ -66,10 +66,10 @@ extern char **environ;
#define environ (*_NSGetEnviron())
#endif
-#ifdef _MSC_VER
-static const char* _SOURCE_PATH =
-#include "build_path.precomp"
-;
+#if !defined(_SOURCE_PATH) && defined(_MSC_VER)
+ static const char* _SOURCE_PATH =
+ #include "build_path.precomp"
+ ;
#endif
namespace LuaNode {

0 comments on commit 53826c6

Please sign in to comment.