Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
dd0f2577
Commit
dd0f2577
authored
Jun 18, 2013
by
Jesse Beder
Browse files
Merged make build fix from core
parents
4f858a47
e40ed4f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
CMakeLists.txt
CMakeLists.txt
+12
-9
No files found.
CMakeLists.txt
View file @
dd0f2577
...
...
@@ -141,15 +141,18 @@ if(CMAKE_COMPILER_IS_GNUCXX)
endif
()
#
set
(
CMAKE_CXX_FLAGS
"-Wall
${
GCC_EXTRA_OPTIONS
}
-pedantic -Wno-long-long
${
CMAKE_CXX_FLAGS
}
"
)
#
add_custom_target
(
debuggable $
(
MAKE
)
clean
COMMAND
${
CMAKE_COMMAND
}
-DCMAKE_BUILD_TYPE=Debug
${
CMAKE_SOURCE_DIR
}
COMMENT
"Adjusting settings for debug compilation"
VERBATIM
)
add_custom_target
(
releasable $
(
MAKE
)
clean
COMMAND
${
CMAKE_COMMAND
}
-DCMAKE_BUILD_TYPE=Release
${
CMAKE_SOURCE_DIR
}
COMMENT
"Adjusting settings for release compilation"
VERBATIM
)
### Make specific
if
(
${
CMAKE_BUILD_TOOL
}
STREQUAL make OR
${
CMAKE_BUILD_TOOL
}
STREQUAL gmake
)
add_custom_target
(
debuggable $
(
MAKE
)
clean
COMMAND
${
CMAKE_COMMAND
}
-DCMAKE_BUILD_TYPE=Debug
${
CMAKE_SOURCE_DIR
}
COMMENT
"Adjusting settings for debug compilation"
VERBATIM
)
add_custom_target
(
releasable $
(
MAKE
)
clean
COMMAND
${
CMAKE_COMMAND
}
-DCMAKE_BUILD_TYPE=Release
${
CMAKE_SOURCE_DIR
}
COMMENT
"Adjusting settings for release compilation"
VERBATIM
)
endif
()
endif
()
# Microsoft VisualC++ specialities
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment