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 Dec 5, 2018
1 parent 2c5fc66 commit 89b7451
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 @@ -195,7 +195,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 89b7451

Please sign in to comment.