aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/cmake/FindMT.cmake
blob: 5239a4c2f5a549c5c2e4ecd143640904618d6da2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#Find the windows manifest tool.

FIND_PROGRAM(HAVE_MANIFEST_TOOL NAMES mt
                 PATHS
                 "$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/VC/bin"
                 "$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/Common7/Tools/Bin"
                 "$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/SDK/v2.0/Bin")
IF(HAVE_MANIFEST_TOOL)
    MESSAGE(STATUS "Found Mainfest Tool. Embedding custom manifests.")
ELSE(HAVE_MANIFEST_TOOL)
    MESSAGE(FATAL_ERROR "Manifest tool, mt.exe, can't be found.")
ENDIF(HAVE_MANIFEST_TOOL)

STRING(REPLACE "/MANIFEST" "/MANIFEST:NO" CMAKE_EXE_LINKER_FLAGS 
      ${CMAKE_EXE_LINKER_FLAGS})