Hi,
i tried to do a short test script to see differences in my system when comparing different conditions.
set(BUILD_SHARED_RUNTIME2 TRUE)
message(STATUS “Boost Linkage Shared: ${BUILD_SHARED_RUNTIME2}”)
if(BUILD_SHARED_RUNTIME2)
message(STATUS ">>>>>>>>>>>>>>>>>>>>>> Inside bool if")
else()
message(STATUS ">>>>>>>>>>>>>>>>>>>>>> Inside bool else")
endif()
if(${BUILD_SHARED_RUNTIME2})
message(STATUS ">>>>>>>>>>>>>>>>>>>>>> Inside {bool} if")
else()
message(STATUS ">>>>>>>>>>>>>>>>>>>>>> Inside {bool} else")
endif()
As a result on my pc i get
-- Boost Linkage Shared: TRUE
-- >>>>>>>>>>>>>>>>>>>>>> Inside bool if
-- >>>>>>>>>>>>>>>>>>>>>> Inside {bool} else
Other pcs get
-- Boost Linkage Shared: TRUE
-- >>>>>>>>>>>>>>>>>>>>>> Inside bool if
-- >>>>>>>>>>>>>>>>>>>>>> Inside {bool} if
Same behaior is with ON/ OFF.
Does someone has an idea if the code or the usage is wrong. Or if my pc has a setting which others do not have? I am really looking forward if someone can bring some light into the dark.
Thanks and Cheers,
Lars