Skip to content

Commit

Permalink
Merge pull request #294 from positive-response/BOOST_LOG_DYN_LINK_RED…
Browse files Browse the repository at this point in the history
…EFINED

"BOOST_LOG_DYN_LINK" redefined  & BOOST_BIND_GLOBAL_PLACEHOLDERS issues resolved
  • Loading branch information
kkacprzak authored Feb 1, 2024
2 parents ddd0c80 + 59ad266 commit cebb954
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,17 @@ ROOT_GENERATE_DICTIONARY(${DICTIONARY_NAME} ${HEADERS_WITH_DICTIONARY_REQUIRED}
## Building Framework library
add_library(JPetFramework SHARED ${SOURCES} ${DICTIONARY_NAME}.cxx)
add_library(JPetFramework::JPetFramework ALIAS JPetFramework)
add_definitions("-DBOOST_BIND_GLOBAL_PLACEHOLDERS")
target_compile_options(JPetFramework PRIVATE -Wunused-parameter -Wall)
target_compile_definitions(JPetFramework PUBLIC BOOST_LOG_DYN_LINK=true)
if(DEFINED BOOST_LOG_DYN_LINK)
set(BOOST_LOG_DYN_LINK=false)
target_compile_definitions(JPetFramework PUBLIC BOOST_LOG_DYN_LINK)
else()
set(BOOST_LOG_DYN_LINK=true)
target_compile_definitions(JPetFramework PUBLIC BOOST_LOG_DYN_LINK)
endif()

##target_compile_definitions(JPetFramework PUBLIC BOOST_LOG_DYN_LINK=true)
foreach(dir ${FOLDERS_WITH_SOURCE})
target_include_directories(JPetFramework PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include/${dir}>
Expand Down

0 comments on commit cebb954

Please sign in to comment.