Skip to content

Commit

Permalink
don't compile stclib.c since not required and set us free from 1 comp…
Browse files Browse the repository at this point in the history
…iler warning
  • Loading branch information
radkesvat committed Apr 10, 2024
1 parent 7b8f368 commit 76718cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ww/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ CPMAddPackage(

if(stc_ADDED)
target_include_directories(ww PUBLIC ${stc_SOURCE_DIR}/include)
target_sources(ww PRIVATE ${stc_SOURCE_DIR}/src/libstc.c)
# target_sources(ww PRIVATE ${stc_SOURCE_DIR}/src/libstc.c)

endif()

Expand Down Expand Up @@ -99,6 +99,9 @@ CPMAddPackage(
# target_compile_options(ww PUBLIC -fPIC)
# message( FATAL_ERROR "Y" )

# target_compile_options(ww PUBLIC -pg)
# target_link_options(ww PUBLIC -pg)

if(ENABLE_ASAN AND CMAKE_BUILD_TYPE STREQUAL "Debug")
target_compile_options(ww PUBLIC -fsanitize=address)
target_link_options(ww PUBLIC -fsanitize=address)
Expand Down

0 comments on commit 76718cb

Please sign in to comment.