Skip to content

Commit

Permalink
[Config] Fixed a typo in a CMake list
Browse files Browse the repository at this point in the history
  • Loading branch information
da115115 committed May 31, 2020
1 parent e2deb7d commit 53455e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions config/FindBoost.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
# Save project's policies
cmake_policy(PUSH)
cmake_policy(SET CMP0057 NEW) # if IN_LIST
cmake_policy(SET CMP0102 NEW) # if mark_as_advanced(non_cache_var)
if (POLICY CMP0102)
cmake_policy(SET CMP0102 NEW) # if mark_as_advanced(non_cache_var)
endif (POLICY CMP0102)

function(_boost_get_existing_target component target_var)
set(names "${component}")
Expand Down Expand Up @@ -1644,9 +1646,11 @@ if(Boost_INCLUDE_DIR)
set(Boost_VERSION_STRING "${Boost_VERSION_MAJOR}.${Boost_VERSION_MINOR}.${Boost_VERSION_PATCH}")

# Define final Boost_VERSION
cmake_policy(GET CMP0093 _Boost_CMP0093
PARENT_SCOPE # undocumented, do not use outside of CMake
)
if (POLICY CMP0093)
cmake_policy(GET CMP0093 _Boost_CMP0093
PARENT_SCOPE # undocumented, do not use outside of CMake
)
endif (POLICY CMP0093)
if("x${_Boost_CMP0093}x" STREQUAL "xNEWx")
set(Boost_VERSION ${Boost_VERSION_STRING})
else()
Expand Down
2 changes: 1 addition & 1 deletion config/project_config_embeddable.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ macro (get_boost)
# distribution, it can be libboost_python3 or libboost_python3x
if (${Boost_PYTHON3_FOUND})
set (BOOST_REQUIRED_COMPONENTS_FOR_PYEXT ${python_cpt_name1})
list (BOOST_REQUIRED_COMPONENTS ${python_cpt_name2})
list (REMOVE_ITEM BOOST_REQUIRED_COMPONENTS ${python_cpt_name2})
endif (${Boost_PYTHON3_FOUND})

if (${Boost_PYTHON${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR}_FOUND})
Expand Down

0 comments on commit 53455e0

Please sign in to comment.