PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/indra/cmake/FindMT.cmake

https://bitbucket.org/lindenlab/viewer-beta/
CMake | 15 lines | 12 code | 2 blank | 1 comment | 0 complexity | defc7700291203bd97c68092cbfc66d6 MD5 | raw file
 1#Find the windows manifest tool.
 2
 3FIND_PROGRAM(HAVE_MANIFEST_TOOL NAMES mt
 4                 PATHS
 5                 "$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/VC/bin"
 6                 "$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/Common7/Tools/Bin"
 7                 "$ENV{PROGRAMFILES}/Microsoft Visual Studio 8/SDK/v2.0/Bin")
 8IF(HAVE_MANIFEST_TOOL)
 9    MESSAGE(STATUS "Found Mainfest Tool. Embedding custom manifests.")
10ELSE(HAVE_MANIFEST_TOOL)
11    MESSAGE(FATAL_ERROR "Manifest tool, mt.exe, can't be found.")
12ENDIF(HAVE_MANIFEST_TOOL)
13
14STRING(REPLACE "/MANIFEST" "/MANIFEST:NO" CMAKE_EXE_LINKER_FLAGS 
15      ${CMAKE_EXE_LINKER_FLAGS})