File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed
Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 11# Builds the libraries for Boost.Nowide
22#
33# Options:
4- # BOOST_NOWIDE_INSTALL
5- # BOOST_NOWIDE_WERROR
4+ # Boost_NOWIDE_INSTALL
5+ # Boost_NOWIDE_WERROR
66# BUILD_TESTING
77#
88# Created target: Boost::nowide
@@ -49,11 +49,11 @@ if(BUILD_SHARED_LIBS)
4949endif ()
5050target_compile_definitions (boost_nowide PUBLIC BOOST_NOWIDE_NO_LIB)
5151target_include_directories (boost_nowide PUBLIC include )
52- boost_add_warnings(boost_nowide pedantic ${BOOST_NOWIDE_WERROR } )
52+ boost_add_warnings(boost_nowide pedantic ${Boost_NOWIDE_WERROR } )
5353
5454if (BOOST_SUPERPROJECT_SOURCE_DIR)
5555 target_link_libraries (boost_nowide PUBLIC Boost::config Boost::smart_ptr Boost::static_assert)
56- set (BOOST_NOWIDE_INSTALL OFF ) # smart_ptr does not support installation
56+ set (Boost_NOWIDE_INSTALL OFF ) # smart_ptr does not support installation
5757else ()
5858 # Default boost libs are static on windows and dynamic on linux
5959 if (WIN32 AND NOT DEFINED Boost_USE_STATIC_LIBS)
@@ -67,7 +67,7 @@ if(BUILD_TESTING)
6767 add_subdirectory (test )
6868endif ()
6969
70- if (BOOST_NOWIDE_INSTALL )
70+ if (Boost_NOWIDE_INSTALL )
7171 include (InstallTargets)
7272 install_targets (TARGETS boost_nowide NAMESPACE Boost CONFIG_FILE ${PROJECT_SOURCE_DIR} /Config.cmake.in)
7373endif ()
Original file line number Diff line number Diff line change 77 set (def_WERROR OFF )
88endif ()
99
10- string (TOUPPER ${PROJECT_NAME} NAME )
10+ string (TOUPPER ${PROJECT_NAME} name )
11+ string (REPLACE BOOST_ Boost_ name ${name} )
1112
12- option (${NAME } _INSTALL "Install library" "${def_INSTALL} " )
13- option (${NAME } _WERROR "Treat warnings as errors" "${def_WERROR} " )
13+ option (${name } _INSTALL "Install library" "${def_INSTALL} " )
14+ option (${name } _WERROR "Treat warnings as errors" "${def_WERROR} " )
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ function(boost_nowide_add_test name)
77
88 add_executable (${name} ${ARG_SRC} )
99 target_link_libraries (${name} PRIVATE Boost::nowide ${ARG_LIBRARIES} )
10- boost_add_warnings(${name} pedantic ${BOOST_NOWIDE_WERROR } )
10+ boost_add_warnings(${name} pedantic ${Boost_NOWIDE_WERROR } )
1111 target_compile_definitions (${name} PRIVATE BOOST_ALL_NO_LIB ${ARG_DEFINITIONS} )
1212 if (NOT ARG_COMPILE_ONLY)
1313 add_test (NAME ${name} COMMAND ${name} ${ARG_ARGS} )
Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ CMLs=$(find "$targetFolder" -name 'CMakeLists.txt' -or -name '*.cmake')
4949
5050sed ' s/ BOOST_ALL_NO_LIB//' -i $CMLs
5151sed ' s/BOOST_NOWIDE_/NOWIDE_/g' -i $CMLs
52+ sed ' s/Boost_NOWIDE_/NOWIDE_/g' -i $CMLs
5253sed ' s/boost_nowide/nowide/g' -i $CMLs
5354sed ' s/boost_/nowide_/g' -i $CMLs
5455sed ' s/Boost::nowide/nowide::nowide/g' -i $CMLs
You can’t perform that action at this time.
0 commit comments