]> granicus.if.org Git - libevent/commitdiff
cmake: don't override CMAKE_CONFIGURATION_TYPES.
authorPaweł Wegner <lemourin@google.com>
Thu, 13 May 2021 15:32:11 +0000 (17:32 +0200)
committerPaweł Wegner <pawel.wegner95@gmail.com>
Fri, 14 May 2021 12:07:30 +0000 (14:07 +0200)
Surprisingly this overrides configuration types for projects which embed libevent using cmake's add_subdirectory.

CMakeLists.txt

index ac59e97b1d4ff466903e745b060a19dcb463eea5..6acf2414091f13ac0987ea009247a3aea1d5c8ba 100644 (file)
@@ -37,10 +37,6 @@ if(NOT CMAKE_BUILD_TYPE)
 endif()
 string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
 
-# get rid of the extra default configurations
-# what? why would you get id of other useful build types? - Ellzey
-set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Limited configurations" FORCE)
-
 set(EVENT__LIBRARY_TYPE DEFAULT CACHE STRING
     "Set library type to SHARED/STATIC/BOTH (default SHARED for MSVC, otherwise BOTH)")