Setup and clear of string pool.
[SquirrelJME.git] / nanocoat / cmake / pre-fixes.cmake
blob0f7a59787115047e4ff4f1b08ff79a3f8449231b
1 # ---------------------------------------------------------------------------
2 # SquirrelJME
3 #     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
4 # ---------------------------------------------------------------------------
5 # SquirrelJME is under the Mozilla Public License Version 2.0.
6 # See license.mkd for licensing and copyright information.
7 # ---------------------------------------------------------------------------
8 # DESCRIPTION: Pre-fixes before project()
10 # Debugging?
11 if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR
12         CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
13         set(SQUIRRELJME_IS_DEBUG ON)
14         set(SQUIRRELJME_IS_RELEASE OFF)
15 else()
16         set(SQUIRRELJME_IS_DEBUG OFF)
17         set(SQUIRRELJME_IS_RELEASE ON)
18 endif()
20 # For MSVC statically link against the runtime
21 if(MSVC)
22         if(SQUIRRELJME_IS_DEBUG)
23                 set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreadedDebug")
24         else()
25                 set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded")
26         endif()
27 endif()