File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
include (UseSWIG )
2
2
3
3
set (CMAKE_SWIG_FLAGS "-module" "openscap_pm" )
4
- if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_C_COMPILER_ID} STREQUAL "Clang" )
5
- set_property (SOURCE openscapPERL5_wrap.c PROPERTY COMPILE_OPTIONS "-w" )
6
- endif ()
7
4
if (${CMAKE_VERSION} VERSION_LESS "3.8.0" )
8
5
swig_add_module (openscap_pm perl5 ../openscap.i )
9
6
else ()
10
7
swig_add_library (openscap_pm LANGUAGE perl5 SOURCES ../openscap.i )
11
8
endif ()
12
9
swig_link_libraries (openscap_pm openscap ${PERL_LIBRARY} )
13
10
target_include_directories (openscap_pm PUBLIC ${PERL_INCLUDE_PATH} )
11
+ if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_C_COMPILER_ID} STREQUAL "Clang" )
12
+ target_compile_options (${SWIG_MODULE_openscap_pm_REAL_NAME} PUBLIC "-w" )
13
+ endif ()
14
14
15
15
install (TARGETS ${SWIG_MODULE_openscap_pm_REAL_NAME}
16
16
DESTINATION ${CMAKE_INSTALL_LIBDIR} /perl5/vendor_perl )
Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ include_directories(${PYTHON_INCLUDE_PATH})
6
6
include_directories (${CMAKE_CURRENT_SOURCE_DIR} )
7
7
8
8
set (CMAKE_SWIG_FLAGS "-module" "openscap_py" "-py3" )
9
- if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_C_COMPILER_ID} STREQUAL "Clang" )
10
- set_property (SOURCE openscapPYTHON_wrap.c PROPERTY COMPILE_OPTIONS "-w" )
11
- endif ()
12
9
if (${CMAKE_VERSION} VERSION_LESS "3.8.0" )
13
10
swig_add_module (openscap_py python ../openscap.i )
14
11
else ()
15
12
swig_add_library (openscap_py LANGUAGE python SOURCES ../openscap.i )
16
13
endif ()
17
14
swig_link_libraries (openscap_py openscap ${PYTHON_LIBRARIES} ${LIBXML2_LIBRARIES} ${LIBXSLT_LIBRARIES} ${LIBXSLT_EXSLT_LIBRARIES} ${PCRE_LIBRARIES} ${CURL_LIBRARIES} ${BZIP2_LIBRARIES} ${RPM_LIBRARIES} )
15
+ if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_C_COMPILER_ID} STREQUAL "Clang" )
16
+ target_compile_options (${SWIG_MODULE_openscap_py_REAL_NAME} PUBLIC "-w" )
17
+ endif ()
18
18
19
19
add_custom_command (OUTPUT ${PYTHON_COMPILED_FILES}
20
20
COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR} /../openscap_api.py ${CMAKE_CURRENT_BINARY_DIR}
You can’t perform that action at this time.
0 commit comments