Fix CMake build.
This commit is contained in:
parent
ada80cfd34
commit
7ed5bb1a6e
2 changed files with 3 additions and 3 deletions
|
@ -601,9 +601,9 @@ if(ENABLE_GAME)
|
|||
find_package( PNG )
|
||||
if(ENABLE_LIBPNG AND PNG_FOUND)
|
||||
add_definitions(-DHAVE_LIBPNG)
|
||||
else
|
||||
else(ENABLE_LIBPNG AND PNG_FOUND)
|
||||
message("Could not find lib PNG. Disabling support for writing PNG images.")
|
||||
endif()
|
||||
endif(ENABLE_LIBPNG AND PNG_FOUND)
|
||||
endif(ENABLE_GAME)
|
||||
|
||||
if(ENABLE_POT_UPDATE_TARGET)
|
||||
|
|
|
@ -391,7 +391,7 @@ if(LIBDBUS_FOUND)
|
|||
endif()
|
||||
|
||||
if(PNG_FOUND)
|
||||
set_sources_files_properties(
|
||||
set_source_files_properties(
|
||||
SDL_SavePNG/savepng.cpp
|
||||
PROPERTIES
|
||||
COMPILE_FLAGS "${CXX_FLAG_NO_OLD_STYLE_CAST}"
|
||||
|
|
Loading…
Add table
Reference in a new issue