Skip to content

Commit

Permalink
Fix compile flag issue
Browse files Browse the repository at this point in the history
  • Loading branch information
samp-incognito committed Feb 9, 2018
1 parent c04656f commit 4e87424
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ set(CPACK_PACKAGE_VERSION ${PLUGIN_VERSION})

if(WIN32)
set(CPACK_GENERATOR ZIP)
elseif(UNIX)
else()
set(CPACK_GENERATOR TGZ)
endif()

Expand Down
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ add_samp_plugin(${PROJECT_NAME} ${PLUGIN_SOURCES})

if(WIN32)
add_definitions(-DBOOST_ALL_NO_LIB -DNOMINMAX)
elseif(UNIX)
add_compile_options(-fno-strict-aliasing)
else()
set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY COMPILE_FLAGS " -fno-strict-aliasing")
set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY LINK_FLAGS " -lrt -s")
endif()

Expand Down

0 comments on commit 4e87424

Please sign in to comment.