Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianTerhorst committed Jun 11, 2019
1 parent 0a6db62 commit ce97a6d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions runtime/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@ add_library(${TARGET_NAME} SHARED altv.cpp CSharpScriptRuntime.cpp CSharpResourc
altv-c-api/baseobject.cpp altv-c-api/mvalue.cpp altv-c-api/function.cpp altv-c-api/position.h altv-c-api/rotation.h altv-c-api/rgba.h altv-c-api/resource.h altv-c-api/resource.cpp altv-c-api/voice_channel.cpp)# clrHost.cpp

if(UNIX AND NOT APPLE)
#target_compile_options(${TARGET_NAME} PRIVATE -std=c++17 -static -nostdinc++ -I/home/parallels/Desktop/clang_7.0.1/include/c++/v1 -nodefaultlibs -lc++ -lc++abi -lm -lc -lgcc_s -lgcc)
target_compile_options(${TARGET_NAME} PRIVATE -std=c++17 -static -Wall -Wpedantic -fsanitize=address -g )
#target_compile_options(${TARGET_NAME} PRIVATE -std=c++17 -static-libstdc++ -static-libgcc -lstdc++)
#target_link_libraries(${TARGET_NAME} -static-libstdc++)
#target_link_libraries(${TARGET_NAME} -static-libstdc++)
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
set (CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address")
target_compile_options(${TARGET_NAME} PRIVATE -std=c++17)
target_link_libraries(${TARGET_NAME} -static-libgcc -static-libstdc++)
else()
target_compile_options(${TARGET_NAME} PRIVATE)# -I/home/parallels/Desktop/clang_7.0.1/include/c++/v1 -stdlib=libc++ -I$ENV{PROGRAMFILES}/LLVM/lib/clang/7.0.1/include -nodefaultlibs
endif()
Expand Down

0 comments on commit ce97a6d

Please sign in to comment.