Skip to content

Commit

Permalink
Only include the required OSFunctions
Browse files Browse the repository at this point in the history
  • Loading branch information
fasterthanlime committed Nov 20, 2017
1 parent 2663229 commit fe2c209
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Lib7Zip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ include_directories(
${UPSTREAM_INCLUDE_DIR}/CPP/include_windows
)

# TODO: includes
if (${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
set(OSFUNCTIONS_SOURCE ${SOURCE_DIR}/OSFunctions_Win32.cpp)
else()
set(OSFUNCTIONS_SOURCE ${SOURCE_DIR}/OSFunctions_UnixLike.cpp)
endif()

set (lib7zip_SOURCES
${SOURCE_DIR}/7ZipArchive.cpp
Expand All @@ -50,9 +54,8 @@ set (lib7zip_SOURCES
${SOURCE_DIR}/7ZipFormatInfo.cpp
${SOURCE_DIR}/7ZipObjectPtrArray.cpp
${SOURCE_DIR}/7ZipOpenArchive.cpp
${SOURCE_DIR}/OSFunctions_UnixLike.cpp
${SOURCE_DIR}/OSFunctions_Win32.cpp
${SOURCE_DIR}/7ZipInStreamWrapper.cpp
${OSFUNCTIONS_SOURCE}
)

add_library(7zip STATIC ${lib7zip_SOURCES})
Expand Down

0 comments on commit fe2c209

Please sign in to comment.