Remove more DX CMake bits

There is also a weird bit in here that seems like it should be
whether to use system or included libpng, but it actually does
the directx include dir on one side.
This commit is contained in:
Tracy Ward
2019-10-04 11:34:24 -04:00
parent c1e4d56f5e
commit d7f9c8d7b6
+2 -4
View File
@@ -481,9 +481,6 @@ if(WIN32)
"setupapi.lib"
"hid.lib")
get_filename_component(DIRECTX_LIBRARY_DIR "${DIRECTX_LIBRARIES}" DIRECTORY)
sm_add_link_flag("${SM_EXE_NAME}" "/LIBPATH:\"${DIRECTX_LIBRARY_DIR}\"")
sm_add_link_flag("${SM_EXE_NAME}" "/LIBPATH:\"${SM_EXTERN_DIR}/ffmpeg/lib\"")
sm_add_link_flag("${SM_EXE_NAME}"
"/LIBPATH:\"${SM_SRC_DIR}/archutils/Win32/ddk\"")
@@ -665,7 +662,8 @@ else()
endif()
if(WIN32)
list(APPEND SM_INCLUDE_DIRS ${DIRECTX_INCLUDE_DIR})
# FIXME: This makes no sense...
#list(APPEND SM_INCLUDE_DIRS ${DIRECTX_INCLUDE_DIR})
else()
list(APPEND SM_INCLUDE_DIRS "${SM_EXTERN_DIR}/libpng/include")
endif()