Skip to content

Commit 79a1ab4

Browse files
committed
Merge branch 'develop'
2 parents 8a6b5fb + aef150a commit 79a1ab4

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
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)
4949
endif()
5050
target_compile_definitions(boost_nowide PUBLIC BOOST_NOWIDE_NO_LIB)
5151
target_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

5454
if(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
5757
else()
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)
6868
endif()
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)
7373
endif()

cmake/BoostAddOptions.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ else()
77
set(def_WERROR OFF)
88
endif()
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}")

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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})

tools/create_standalone.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ CMLs=$(find "$targetFolder" -name 'CMakeLists.txt' -or -name '*.cmake')
4949

5050
sed 's/ BOOST_ALL_NO_LIB//' -i $CMLs
5151
sed 's/BOOST_NOWIDE_/NOWIDE_/g' -i $CMLs
52+
sed 's/Boost_NOWIDE_/NOWIDE_/g' -i $CMLs
5253
sed 's/boost_nowide/nowide/g' -i $CMLs
5354
sed 's/boost_/nowide_/g' -i $CMLs
5455
sed 's/Boost::nowide/nowide::nowide/g' -i $CMLs

0 commit comments

Comments
 (0)