diff --git a/CMakeLists.txt b/CMakeLists.txt index d10df970..c3ab5d10 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,7 +27,7 @@ set(CPACK_PACKAGE_VERSION ${PLUGIN_VERSION}) if(WIN32) set(CPACK_GENERATOR ZIP) -elseif(UNIX) +else() set(CPACK_GENERATOR TGZ) endif() diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0c163283..ca952a6c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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()