mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-29 23:25:59 +00:00
Merge with default
This commit is contained in:
commit
fca15bd084
2 changed files with 15 additions and 50 deletions
|
@ -1,50 +0,0 @@
|
||||||
# - Locate S3TC library
|
|
||||||
# This module defines
|
|
||||||
# S3TC_LIBRARY, the library to link against
|
|
||||||
# S3TC_FOUND, if false, do not try to link to S3TC
|
|
||||||
# S3TC_INCLUDE_DIR, where to find headers.
|
|
||||||
|
|
||||||
IF(S3TC_LIBRARY AND S3TC_INCLUDE_DIR)
|
|
||||||
# in cache already
|
|
||||||
SET(S3TC_FIND_QUIETLY TRUE)
|
|
||||||
ENDIF(S3TC_LIBRARY AND S3TC_INCLUDE_DIR)
|
|
||||||
|
|
||||||
|
|
||||||
FIND_PATH(S3TC_INCLUDE_DIR
|
|
||||||
s3_intrf.h
|
|
||||||
PATHS
|
|
||||||
$ENV{S3TC_DIR}/include
|
|
||||||
/usr/local/include
|
|
||||||
/usr/include
|
|
||||||
/sw/include
|
|
||||||
/opt/local/include
|
|
||||||
/opt/csw/include
|
|
||||||
/opt/include
|
|
||||||
PATH_SUFFIXES S3TC
|
|
||||||
)
|
|
||||||
|
|
||||||
FIND_LIBRARY(S3TC_LIBRARY
|
|
||||||
NAMES s3tc libs3tc
|
|
||||||
PATHS
|
|
||||||
$ENV{S3TC_DIR}/lib
|
|
||||||
/usr/local/lib
|
|
||||||
/usr/lib
|
|
||||||
/usr/local/X11R6/lib
|
|
||||||
/usr/X11R6/lib
|
|
||||||
/sw/lib
|
|
||||||
/opt/local/lib
|
|
||||||
/opt/csw/lib
|
|
||||||
/opt/lib
|
|
||||||
/usr/freeware/lib64
|
|
||||||
)
|
|
||||||
|
|
||||||
IF(S3TC_LIBRARY AND S3TC_INCLUDE_DIR)
|
|
||||||
SET(S3TC_FOUND "YES")
|
|
||||||
IF(NOT S3TC_FIND_QUIETLY)
|
|
||||||
MESSAGE(STATUS "Found S3TC: ${S3TC_LIBRARY}")
|
|
||||||
ENDIF(NOT S3TC_FIND_QUIETLY)
|
|
||||||
ELSE(S3TC_LIBRARY AND S3TC_INCLUDE_DIR)
|
|
||||||
IF(NOT S3TC_FIND_QUIETLY)
|
|
||||||
MESSAGE(STATUS "Warning: Unable to find S3TC!")
|
|
||||||
ENDIF(NOT S3TC_FIND_QUIETLY)
|
|
||||||
ENDIF(S3TC_LIBRARY AND S3TC_INCLUDE_DIR)
|
|
|
@ -208,6 +208,9 @@ MACRO(PCH_SET_COMPILE_COMMAND _inputcpp _compile_FLAGS)
|
||||||
IF(MSVC)
|
IF(MSVC)
|
||||||
GET_PDB_FILENAME(PDB_FILE ${_PCH_current_target})
|
GET_PDB_FILENAME(PDB_FILE ${_PCH_current_target})
|
||||||
SET(PCH_COMMAND ${CMAKE_CXX_COMPILER} ${pchsupport_compiler_cxx_arg1} ${_compile_FLAGS} /Yc /Fp"${PCH_OUTPUT}" ${_inputcpp} /Fd"${PDB_FILE}" /c /Fo"${PCH_OUTPUT}.obj")
|
SET(PCH_COMMAND ${CMAKE_CXX_COMPILER} ${pchsupport_compiler_cxx_arg1} ${_compile_FLAGS} /Yc /Fp"${PCH_OUTPUT}" ${_inputcpp} /Fd"${PDB_FILE}" /c /Fo"${PCH_OUTPUT}.obj")
|
||||||
|
# Ninja PCH Support
|
||||||
|
# http://public.kitware.com/pipermail/cmake-developers/2012-March/003653.html
|
||||||
|
SET_SOURCE_FILES_PROPERTIES(${_inputcpp} PROPERTIES OBJECT_OUTPUTS "${PCH_OUTPUT}.obj")
|
||||||
ELSE(MSVC)
|
ELSE(MSVC)
|
||||||
SET(HEADER_FORMAT "c++-header")
|
SET(HEADER_FORMAT "c++-header")
|
||||||
SET(_FLAGS "")
|
SET(_FLAGS "")
|
||||||
|
@ -267,6 +270,18 @@ MACRO(ADD_PRECOMPILED_HEADER_TO_TARGET _targetName)
|
||||||
|
|
||||||
IF(MSVC)
|
IF(MSVC)
|
||||||
SET(_target_cflags "${oldProps} /Yu\"${PCH_INPUT}\" /FI\"${PCH_INPUT}\" /Fp\"${PCH_OUTPUT}\"")
|
SET(_target_cflags "${oldProps} /Yu\"${PCH_INPUT}\" /FI\"${PCH_INPUT}\" /Fp\"${PCH_OUTPUT}\"")
|
||||||
|
# Ninja PCH Support
|
||||||
|
# http://public.kitware.com/pipermail/cmake-developers/2012-March/003653.html
|
||||||
|
SET_TARGET_PROPERTIES(${_targetName} PROPERTIES OBJECT_DEPENDS "${PCH_OUTPUT}")
|
||||||
|
|
||||||
|
# NMAKE-VS2012 Error LNK2011 (NMAKE-VS2010 do not complain)
|
||||||
|
# we need to link the pch.obj file, see http://msdn.microsoft.com/en-us/library/3ay26wa2(v=vs.110).aspx
|
||||||
|
GET_TARGET_PROPERTY(DEPS ${_targetName} LINK_LIBRARIES)
|
||||||
|
if (NOT DEPS)
|
||||||
|
set (DEPS)
|
||||||
|
endif ()
|
||||||
|
list (INSERT DEPS 0 "${PCH_OUTPUT}.obj")
|
||||||
|
SET_TARGET_PROPERTIES(${_targetName} PROPERTIES LINK_LIBRARIES "${DEPS}")
|
||||||
ELSE(MSVC)
|
ELSE(MSVC)
|
||||||
# for use with distcc and gcc >4.0.1 if preprocessed files are accessible
|
# for use with distcc and gcc >4.0.1 if preprocessed files are accessible
|
||||||
# on all remote machines set
|
# on all remote machines set
|
||||||
|
|
Loading…
Reference in a new issue