Skip to content

Commit

Permalink
Removed unused CMake macros
Browse files Browse the repository at this point in the history
  • Loading branch information
crypto-ape committed Sep 23, 2019
1 parent 0887c2e commit aca91af
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions CMakeModules/Utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,3 @@ macro(add_compiler_flag_if_available _FLAG)
add_flag_append(CMAKE_CXX_FLAGS ${_FLAG})
endif()
endmacro(add_compiler_flag_if_available _VAR_NAME _FLAG)

# macro to verify if required flags are set. If not then the project should be skipped
macro(verify_required_flags _FLAGS)
set (_RESULT 0)
foreach (_FLAG ${_FLAGS})
if (${${_FLAG}})
set (_RESULT 1)
break()
endif()
endforeach()
if (NOT (${_RESULT}))
message (STATUS "Project: ${PROJECT_NAME} will be skipped bulding due to missing required flags")
return()
endif()
endmacro()

macro(link_libraries_by_flag _FLAG _LIST _LIB)
if (${_FLAG})
list(APPEND ${_LIST} ${_LIB})
endif()
endmacro()

0 comments on commit aca91af

Please sign in to comment.