* Identify OS
* =========================================================================
*/
-#define @prj_NAME_OS@
-#define cpExtensions_LIB_PREFIX "@prj_NAME_LIB_PREFIX@"
-#define cpExtensions_LIB_EXT "@prj_NAME_LIB_EXT@"
-#define cpExtensions_ENV_SEPARATOR "@prj_NAME_ENV_SEPARATOR@"
-#define cpExtensions_PATH_SEPARATOR '@prj_NAME_PATH_SEPARATOR@'
+#define cpExtensions_OS_@CMAKE_SYSTEM_NAME@
+#ifdef cpExtensions_OS_Windows
+# define cpExtensions_LIB_PREFIX ""
+# define cpExtensions_ENV_SEPARATOR ";"
+# define cpExtensions_PATH_SEPARATOR '\\'
+# define cpExtensions_LIB_EXT ".dll"
+#else // cpExtensions_OS_Windows
+# define cpExtensions_LIB_PREFIX "lib"
+# define cpExtensions_ENV_SEPARATOR ":"
+# define cpExtensions_PATH_SEPARATOR '/'
+# ifdef cpExtensions_OS_Linux
+# define cpExtensions_LIB_EXT ".so"
+# else // cpExtensions_OS_Linux
+# define cpExtensions_LIB_EXT ".dylib"
+# endif // cpExtensions_OS_Linux
+#endif // cpExtensions_OS_Windows
-#ifdef cpPlugins_OS_Windows
+#ifdef cpExtensions_OS_Windows
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
-# endif
+# endif // WIN32_LEAN_AND_MEAN
# define NOMINMAX
# include <windows.h>
# include <tchar.h>
-#endif
+#endif // cpExtensions_OS_Windows
/*
* =========================================================================