Skip to content

Commit

Permalink
[C++] Use add_compile_options for compiler flags.
Browse files Browse the repository at this point in the history
add_definitions is semantically used to pass macro definitions to source
files.
  • Loading branch information
denizevrenci committed Nov 1, 2018
1 parent c039103 commit b5e53e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ endif()
if(APPLE)
add_compile_options(-Wsign-compare)
add_definitions(-DDarwin)
add_definitions(-Wno-deprecated-register)
add_compile_options(-Wno-deprecated-register)
elseif(CYGWIN)
add_definitions(-DWIN32)
if(AERON_TESTS)
Expand Down

0 comments on commit b5e53e5

Please sign in to comment.