Skip to content

Commit 183c4e1

Browse files
committed
Try add_compile_definitions(), step3
1 parent 629bacc commit 183c4e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ environment:
9595
PLATFORM: ARM64
9696
SDK: npcap-sdk
9797
REMOTE: -DENABLE_REMOTE=NO
98-
POPULATIONCOUNT64: -DPopulationCount64=1
98+
POPULATIONCOUNT64: -DPOPULATIONCOUNT64=1
9999
# VS 2019, Npcap, 64-bit ARM, with remote
100100
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
101101
GENERATOR: "Visual Studio 16 2019"
102102
PLATFORM: ARM64
103103
SDK: npcap-sdk
104104
OPENSSL_ROOT_DIR: -DOPENSSL_ROOT_DIR=C:\OpenSSL-v33-Win64\bin
105-
POPULATIONCOUNT64: -DPopulationCount64=1
105+
POPULATIONCOUNT64: -DPOPULATIONCOUNT64=1
106106
# VS 2022, WinPcap, 32-bit and 64-bit x86, without remote
107107
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022
108108
GENERATOR: "Visual Studio 17 2022"

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,8 +656,8 @@ endif(WIN32)
656656
if(MSVC)
657657
add_definitions(-D__STDC__)
658658
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
659-
if(NOT DEFINED PopulationCount64)
660-
add_compile_definitions(PopulationCount64=${PopulationCount64})
659+
if(DEFINED POPULATIONCOUNT64)
660+
add_compile_definitions(PopulationCount64=${POPULATIONCOUNT64})
661661
endif()
662662
endif(MSVC)
663663

0 commit comments

Comments
 (0)