mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-10 09:19:01 +00:00
Added: special case of rgba.cpp on static
This commit is contained in:
parent
0f0b0ee8cf
commit
281803cf40
1 changed files with 10 additions and 2 deletions
|
@ -48,8 +48,16 @@ NL_ADD_LIB_SUFFIX(nelmisc)
|
||||||
|
|
||||||
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
ADD_DEFINITIONS(${LIBXML2_DEFINITIONS})
|
||||||
|
|
||||||
IF(WITH_PCH)
|
IF(WITH_STATIC)
|
||||||
ADD_NATIVE_PRECOMPILED_HEADER(nelmisc ${CMAKE_CURRENT_SOURCE_DIR}/stdmisc.h ${CMAKE_CURRENT_SOURCE_DIR}/stdmisc.cpp)
|
# acemtp: it's because my gcc is too old and cannot optimize this file
|
||||||
|
# on old gcc used to compile static ryzom, if you compile rgba with full optim, there's a visual bug (blue people)
|
||||||
|
SET_SOURCE_FILES_PROPERTIES(rgba.cpp PROPERTIES COMPILE_FLAGS "-O0")
|
||||||
|
ENDIF(WITH_STATIC)
|
||||||
|
|
||||||
|
IF(WITH_PCH AND NOT WITH_STATIC)
|
||||||
|
# acemtp: it's because my gcc is too old and cannot optimize this file
|
||||||
|
# removed the pch or we cannot define -O0 for the rgba specificaly
|
||||||
|
ADD_NATIVE_PRECOMPILED_HEADER(nelmisc ${CMAKE_CURRENT_SOURCE_DIR}/stdmisc.h ${CMAKE_CURRENT_SOURCE_DIR}/stdmisc.cpp)
|
||||||
ENDIF(WITH_PCH)
|
ENDIF(WITH_PCH)
|
||||||
|
|
||||||
NL_GEN_PC(nel-misc.pc)
|
NL_GEN_PC(nel-misc.pc)
|
||||||
|
|
Loading…
Reference in a new issue