mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-17 19:57:52 +08:00
2b35366a5d
* refine hpx port * v db * add tcmalloc on unix * refine comment * v db * remove hardcoded mpi dep * v db * portfile cleanup * v db * add pkgconf as a dep * v db * [snappy] remove debug suffix and add pc file * hpx pass through _HOST_TRIPLET for pkgconf * v db * fix snappy in ffmpeg * v db * fix name clash of output names * v db * remove tcmalloc * v db * remove bin dir; seems empty on !windows * v db * b v * v db * baseline stuff * fix jemalloc missing msvc_compat headers * v db * install usage for hpx * v db * Update versions/f-/ffmpeg.json * revert v db * bump ffmpeg * v db * remove jemalloc since I can force it thorugh the triplet any way. * v db Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
22 lines
1.1 KiB
Diff
22 lines
1.1 KiB
Diff
diff --git a/cmake/HPX_CompilerFlagsTargets.cmake b/cmake/HPX_CompilerFlagsTargets.cmake
|
|
index 5bf4649..0912503 100644
|
|
--- a/cmake/HPX_CompilerFlagsTargets.cmake
|
|
+++ b/cmake/HPX_CompilerFlagsTargets.cmake
|
|
@@ -15,14 +15,8 @@ target_compile_features(hpx_public_flags INTERFACE cxx_std_${HPX_CXX_STANDARD})
|
|
|
|
# Set other flags that should always be set
|
|
|
|
-# HPX_DEBUG must be set without a generator expression as it determines ABI
|
|
-# compatibility. Projects in Release mode using HPX in Debug mode must have
|
|
-# HPX_DEBUG set, and projects in Debug mode using HPX in Release mode must not
|
|
-# have HPX_DEBUG set. HPX_DEBUG must also not be set by projects using HPX.
|
|
-if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
|
- target_compile_definitions(hpx_private_flags INTERFACE HPX_DEBUG)
|
|
- target_compile_definitions(hpx_public_flags INTERFACE HPX_DEBUG)
|
|
-endif()
|
|
+target_compile_definitions(hpx_private_flags INTERFACE $<$<CONFIG:DEBUG>:HPX_DEBUG>)
|
|
+target_compile_definitions(hpx_public_flags INTERFACE $<$<CONFIG:DEBUG>:HPX_DEBUG>)
|
|
|
|
target_compile_definitions(
|
|
hpx_private_flags
|