mirror of
https://github.com/reactos/reactos.git
synced 2024-08-29 14:48:37 +00:00
![Colin Finck](/assets/img/avatar_default.png)
This finally fixes our duplicated getopt functions from different sources and gives us an up to date and the most compatible implementation. isohybrid actually relies on a glibc-specific getopt behavior that we previously hacked into the reactos_support_code.c implementation derived from BSD/mingw-w64. widl also needs getopt and previously used an even older BSD-derived code.
25 lines
553 B
CMake
25 lines
553 B
CMake
|
|
list(APPEND SOURCE
|
|
hhpcomp.cpp
|
|
hhp_reader.cpp
|
|
utils.cpp
|
|
chmc/chmc.c
|
|
chmc/err.c
|
|
lzx_compress/lz_nonslide.c
|
|
lzx_compress/lzx_layer.c
|
|
../port/mkstemps.c)
|
|
|
|
# used by lzx_compress
|
|
add_definitions(-DNONSLIDE)
|
|
|
|
add_executable(hhpcomp ${SOURCE})
|
|
target_link_libraries(hhpcomp)
|
|
|
|
if(MSVC)
|
|
# Disable warning "'x': unreferenced local variable"
|
|
add_target_compile_flags(hhpcomp "/wd4101")
|
|
|
|
# Disable warning "'=': conversion from 'a' to 'b', possible loss of data"
|
|
add_target_compile_flags(hhpcomp "/wd4244")
|
|
endif()
|