Skip to content

Commit 09e8833

Browse files
Add boost include directories only if MSGPACK_BOOST is enabled
Signed-off-by: Stefan Herbrechtsmeier <[email protected]>
1 parent 99c4d37 commit 09e8833

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

CMakeLists.txt

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -92,20 +92,19 @@ OPTION (MSGPACK_BUILD_EXAMPLES "Build msgpack examples." ON)
9292

9393
IF (MSGPACK_BOOST)
9494
SET (CMAKE_CXX_FLAGS "-DMSGPACK_USE_BOOST ${CMAKE_CXX_FLAGS}")
95-
ENDIF ()
96-
97-
SET (Boost_USE_MULTITHREADED ON)
98-
SET (Boost_USE_STATIC_RUNTIME OFF)
99-
FIND_PACKAGE (Boost COMPONENTS chrono context timer system)
100-
IF (Boost_INCLUDE_DIRS)
101-
INCLUDE_DIRECTORIES (
102-
${Boost_INCLUDE_DIRS}
103-
)
104-
ENDIF ()
105-
IF (MSGPACK_BOOST_DIR)
106-
INCLUDE_DIRECTORIES (
107-
${MSGPACK_BOOST_DIR}
108-
)
95+
SET (Boost_USE_MULTITHREADED ON)
96+
SET (Boost_USE_STATIC_RUNTIME OFF)
97+
FIND_PACKAGE (Boost COMPONENTS chrono context timer system)
98+
IF (Boost_INCLUDE_DIRS)
99+
INCLUDE_DIRECTORIES (
100+
${Boost_INCLUDE_DIRS}
101+
)
102+
ENDIF ()
103+
IF (MSGPACK_BOOST_DIR)
104+
INCLUDE_DIRECTORIES (
105+
${MSGPACK_BOOST_DIR}
106+
)
107+
ENDIF ()
109108
ENDIF ()
110109

111110
IF (MSGPACK_CHAR_SIGN)

0 commit comments

Comments
 (0)