Skip to content

Commit 6646a8f

Browse files
committed
Fixed non-portable CMake code.
1 parent 6712f5b commit 6646a8f

File tree

17 files changed

+0
-18
lines changed

17 files changed

+0
-18
lines changed

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ macro(CeleroSetDefaultCompilerOptions)
3535
target_compile_options(${PROJECT_NAME} PRIVATE /D_SCL_SECURE_NO_WARNINGS)
3636
target_compile_options(${PROJECT_NAME} PRIVATE /permissive-)
3737
target_compile_options(${PROJECT_NAME} PRIVATE /MP)
38-
target_compile_definitions(${PROJECT_NAME} PRIVATE /wd4251)
3938

4039
if (NOT CELERO_COMPILE_DYNAMIC_LIBRARIES)
4140
if(VCPKG_CRT_LINKAGE)
@@ -205,7 +204,6 @@ else()
205204
endif()
206205

207206
CeleroSetDefaultCompilerOptions()
208-
target_compile_options(${PROJECT_NAME} PRIVATE /wd4251)
209207

210208
target_link_libraries(${PROJECT_NAME} ${SYSLIBS})
211209

experiments/DemoFileWrite/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ target_sources(${PROJECT_NAME} PRIVATE
2525
)
2626

2727
CeleroSetDefaultCompilerOptions()
28-
target_compile_options(${PROJECT_NAME} PRIVATE /wd4251)
2928

3029
target_link_libraries(${PROJECT_NAME} celero)
3130
include_directories(${HEADER_PATH})

experiments/DemoMultithread/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ SET(PROJECT_NAME CeleroDemo-Multithread)
4444
target_link_libraries(${PROJECT_NAME} celero)
4545

4646
CeleroSetDefaultCompilerOptions()
47-
target_compile_options(${PROJECT_NAME} PRIVATE /wd4251)
4847

4948
# Broiler Plate: Add Celer's include directories.
5049
include_directories(${HEADER_PATH})

experiments/DemoSimple/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ add_executable(${PROJECT_NAME}
4141
target_link_libraries(${PROJECT_NAME} celero)
4242

4343
CeleroSetDefaultCompilerOptions()
44-
target_compile_options(${PROJECT_NAME} PRIVATE /wd4251)
4544

4645
# Broiler Plate: Add Celer's include directories.
4746
include_directories(${HEADER_PATH})

experiments/DemoSimpleJUnit/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ add_executable(${PROJECT_NAME}
4444
target_link_libraries(${PROJECT_NAME} celero)
4545

4646
CeleroSetDefaultCompilerOptions()
47-
target_compile_options(${PROJECT_NAME} PRIVATE /wd4251)
4847

4948
# Broiler Plate: Add Celer's include directories.
5049
include_directories(${HEADER_PATH})

experiments/DemoSleep/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ add_executable(${PROJECT_NAME}
4141
target_link_libraries(${PROJECT_NAME} celero)
4242

4343
CeleroSetDefaultCompilerOptions()
44-
target_compile_options(${PROJECT_NAME} PRIVATE /wd4251)
4544

4645
# Broiler Plate: Add Celer's include directories.
4746
include_directories(${HEADER_PATH})

experiments/DemoToString/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ add_executable(${PROJECT_NAME}
4444
target_link_libraries(${PROJECT_NAME} celero)
4545

4646
CeleroSetDefaultCompilerOptions()
47-
target_compile_options(${PROJECT_NAME} PRIVATE /wd4251)
4847

4948
# Broiler Plate: Add Celer's include directories.
5049
include_directories(${HEADER_PATH})

experiments/DemoTransform/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ add_executable(${PROJECT_NAME}
4141
target_link_libraries(${PROJECT_NAME} celero)
4242

4343
CeleroSetDefaultCompilerOptions()
44-
target_compile_options(${PROJECT_NAME} PRIVATE /wd4251)
4544

4645
# Broiler Plate: Add Celer's include directories.
4746
include_directories(${HEADER_PATH})

experiments/ExperimentCompressBools/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ if(${CMAKE_CXX_COMPILER_ID} STREQUAL MSVC)
4646
target_link_libraries(${PROJECT_NAME} celero)
4747

4848
CeleroSetDefaultCompilerOptions()
49-
target_compile_options(${PROJECT_NAME} PRIVATE /wd4251)
5049

5150
# Broiler Plate: Add Celer's include directories.
5251
include_directories(${HEADER_PATH})

experiments/ExperimentCostDoNotOptimizeAway/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ add_executable(${PROJECT_NAME}
4444
target_link_libraries(${PROJECT_NAME} celero)
4545

4646
CeleroSetDefaultCompilerOptions()
47-
target_compile_options(${PROJECT_NAME} PRIVATE /wd4251)
4847

4948
# Broiler Plate: Add Celer's include directories.
5049
include_directories(${HEADER_PATH})

experiments/ExperimentCostOfPimpl/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ add_executable(${PROJECT_NAME}
4444
target_link_libraries(${PROJECT_NAME} celero)
4545

4646
CeleroSetDefaultCompilerOptions()
47-
target_compile_options(${PROJECT_NAME} PRIVATE /wd4251)
4847

4948
# Broiler Plate: Add Celer's include directories.
5049
include_directories(${HEADER_PATH})

experiments/ExperimentCostSharedPtr/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ SET(PROJECT_NAME CeleroExperiment-CostOfSharedPtr)
3838
target_link_libraries(${PROJECT_NAME} celero)
3939

4040
CeleroSetDefaultCompilerOptions()
41-
target_compile_options(${PROJECT_NAME} PRIVATE /wd4251)
4241

4342
# Broiler Plate: Add Celer's include directories.
4443
include_directories(${HEADER_PATH})

experiments/ExperimentParameterPassing/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ add_executable(${PROJECT_NAME}
4444
target_link_libraries(${PROJECT_NAME} celero)
4545

4646
CeleroSetDefaultCompilerOptions()
47-
target_compile_options(${PROJECT_NAME} PRIVATE /wd4251)
4847

4948
# Broiler Plate: Add Celer's include directories.
5049
include_directories(${HEADER_PATH})

experiments/ExperimentParticles/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ SET(PROJECT_NAME CeleroExperiment-Particles)
4545
target_link_libraries(${PROJECT_NAME} celero)
4646

4747
CeleroSetDefaultCompilerOptions()
48-
target_compile_options(${PROJECT_NAME} PRIVATE /wd4251)
4948

5049
# Broiler Plate: Add Celer's include directories.
5150
include_directories(${HEADER_PATH})

experiments/ExperimentSimpleComparison/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ SET(PROJECT_NAME CeleroExperiment-SimpleComparison)
4444
target_link_libraries(${PROJECT_NAME} celero)
4545

4646
CeleroSetDefaultCompilerOptions()
47-
target_compile_options(${PROJECT_NAME} PRIVATE /wd4251)
4847

4948
# Broiler Plate: Add Celer's include directories.
5049
include_directories(${HEADER_PATH})

experiments/ExperimentSortingRandomInts/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ add_executable(${PROJECT_NAME}
4444
target_link_libraries(${PROJECT_NAME} celero)
4545

4646
CeleroSetDefaultCompilerOptions()
47-
target_compile_options(${PROJECT_NAME} PRIVATE /wd4251)
4847

4948
# Broiler Plate: Add Celer's include directories.
5049
include_directories(${HEADER_PATH})

experiments/ExperimentSortingRandomIntsUDM/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ add_executable(${PROJECT_NAME}
4545
target_link_libraries(${PROJECT_NAME} celero)
4646

4747
CeleroSetDefaultCompilerOptions()
48-
target_compile_options(${PROJECT_NAME} PRIVATE /wd4251)
4948

5049
# Broiler Plate: Add Celer's include directories.
5150
include_directories(${HEADER_PATH})

0 commit comments

Comments
 (0)