Skip to content

Commit

Permalink
Deactivate some warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Werni2A committed Jul 13, 2024
1 parent 1711219 commit 6c8403f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,11 @@ set(SOURCES
# Create library file from sources
add_library(${NAME_LIB} SHARED ${SOURCES})

# Disable warnings
# warning C4996: 'x': This function or variable may be unsafe. Consider using x instead.
# To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
target_compile_options(${NAME_LIB} PRIVATE $<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/wd4996>)

target_include_directories(${NAME_LIB} PRIVATE
${COMPOUNDFILEREADER_INCLUDE_DIRS}
${LIB_INCLUDE_DIR}
Expand Down
5 changes: 5 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ set(HEADERS
# Create executable file from sources
add_executable(${NAME_TEST} ${SOURCES} ${HEADERS})

# Disable warnings
# warning C4996: 'x': This function or variable may be unsafe. Consider using x instead.
# To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
target_compile_options(${NAME_TEST} PRIVATE $<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/wd4996>)

target_include_directories(${NAME_TEST} PRIVATE
${LIB_INCLUDE_DIR}
${TEST_INCLUDE_DIR}
Expand Down

0 comments on commit 6c8403f

Please sign in to comment.