Skip to content

Commit 0e9ccc3

Browse files
Avoid warnings on unused CMAKE_BUILD_TYPE on Windows (#487) (#488)
Signed-off-by: Jose Luis Rivero <[email protected]> (cherry picked from commit e6097c5) Co-authored-by: Jose Luis Rivero <[email protected]>
1 parent b73e0ec commit 0e9ccc3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,3 +259,9 @@ gz_create_docs(
259259
API_MAINPAGE_MD "${CMAKE_BINARY_DIR}/api.md"
260260
TUTORIALS_MAINPAGE_MD "${CMAKE_BINARY_DIR}/tutorials.md"
261261
)
262+
263+
# Workaround to avoid warnings when using CMAKE_BUILD_TYPE in colcon
264+
# to build other projects and gz-cmake together on Windows
265+
if(DEFINED CMAKE_BUILD_TYPE)
266+
set(_dummy_var "${CMAKE_BUILD_TYPE}")
267+
endif()

0 commit comments

Comments
 (0)