Skip to content

Commit

Permalink
Merge pull request #5221 from UnaNancyOwen/fix_preprocessor
Browse files Browse the repository at this point in the history
Fix append multiple BOOST_ALL_NO_LIB in preprocessor macro
  • Loading branch information
mvieth committed Sep 13, 2022
2 parents addf63f + a4d147a commit 9d49f58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PCLConfig.cmake.in
Expand Up @@ -107,7 +107,7 @@ macro(find_boost)
set(BOOST_INCLUDE_DIRS "${Boost_INCLUDE_DIR}")
set(BOOST_LIBRARY_DIRS "${Boost_LIBRARY_DIRS}")
set(BOOST_LIBRARIES ${Boost_LIBRARIES})
if(WIN32 AND NOT MINGW)
if(WIN32 AND NOT MINGW AND NOT "${BOOST_DEFINITIONS}" MATCHES "BOOST_ALL_NO_LIB")
string(APPEND BOOST_DEFINITIONS -DBOOST_ALL_NO_LIB)
endif()
endmacro()
Expand Down

0 comments on commit 9d49f58

Please sign in to comment.