mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[jxrlib] Add debug postfix and do not install SKD header
Add a debug postfix to jxrlib, to simplify finding the debug library in CMake, consistently with most other libraries in vcpkg. Do not use or install guiddef.h, that is an header of Windows SDK of which jxrlib includes a copy for non-Windows platforms.
This commit is contained in:
parent
009378acce
commit
50d52d49bc
@ -8,6 +8,9 @@ project(jxrlib C)
|
||||
# Need shared libs for ABI
|
||||
option(BUILD_SHARED_LIBS "Build shared libraries" ON)
|
||||
|
||||
# Add a debug postfix
|
||||
set(CMAKE_DEBUG_POSTFIX "d")
|
||||
|
||||
# helper macro to preserve original Makefile convention
|
||||
macro(JXR_MAKE_OBJ SET_NAME)
|
||||
foreach(src ${SRC_${SET_NAME}})
|
||||
|
@ -9,6 +9,10 @@ vcpkg_extract_source_archive(${ARCHIVE})
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
||||
|
||||
# The file guiddef.h is part of the Windows SDK,
|
||||
# we then remove the local copy shipped with jxrlib
|
||||
file(REMOVE ${SOURCE_PATH}/common/include/guiddef.h)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS:BOOL=ON
|
||||
|
Loading…
x
Reference in New Issue
Block a user