Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb84e5c

Browse files
remove -Wall and -Werror for INTERFACE libraries
Since these will stick to dependencies it seems thread-pool-cpp shouldn't be settings these. The c++14 and c++1y settings are hard requirements for the project so setting those seems reasonable.
1 parent 5bdc135 commit fb84e5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ option(THREAD_POOL_CPP_HAS_CPP14 "Has true C++14 support." ON)
3737

3838
if(NOT MSVC)
3939
if(THREAD_POOL_CPP_HAS_CPP14)
40-
target_compile_options(thread-pool-cpp INTERFACE -std=c++14 -Wall -Werror -O3)
40+
target_compile_options(thread-pool-cpp INTERFACE -std=c++14 -O3)
4141
else()
42-
target_compile_options(thread-pool-cpp INTERFACE -std=c++1y -Wall -Werror -O3)
42+
target_compile_options(thread-pool-cpp INTERFACE -std=c++1y -O3)
4343
endif()
4444
else()
4545
if(THREAD_POOL_CPP_HAS_CPP14)

0 commit comments

Comments
 (0)