Skip to content

Commit 4e87424

Browse files
author
samp-incognito
committed
Fix compile flag issue
1 parent c04656f commit 4e87424

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ set(CPACK_PACKAGE_VERSION ${PLUGIN_VERSION})
2727

2828
if(WIN32)
2929
set(CPACK_GENERATOR ZIP)
30-
elseif(UNIX)
30+
else()
3131
set(CPACK_GENERATOR TGZ)
3232
endif()
3333

src/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ add_samp_plugin(${PROJECT_NAME} ${PLUGIN_SOURCES})
3434

3535
if(WIN32)
3636
add_definitions(-DBOOST_ALL_NO_LIB -DNOMINMAX)
37-
elseif(UNIX)
38-
add_compile_options(-fno-strict-aliasing)
37+
else()
38+
set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY COMPILE_FLAGS " -fno-strict-aliasing")
3939
set_property(TARGET ${PROJECT_NAME} APPEND_STRING PROPERTY LINK_FLAGS " -lrt -s")
4040
endif()
4141

0 commit comments

Comments
 (0)