diff --git a/CMakeLists.txt b/CMakeLists.txt index e54b644d..e8f4544f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,7 +104,7 @@ endif () # Check if USB is on (to enable use "-DUSB=" argument of cmake) -if (${USB}) +if (USB) message(STATUS "Building with USB support") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DPIP_USB") list(APPEND LIBS usb) @@ -114,7 +114,7 @@ endif () # Check if STL containers is on (to enable use "-DSTL=" argument of cmake) -if (${STL}) +if (STL) message(STATUS "Building with STL containers") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DPIP_CONTAINERS_STL") else () @@ -123,7 +123,7 @@ endif () # Check if ICU used for PIString and PIChar -if (${ICU}) +if (ICU) message(STATUS "Building with ICU") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DPIP_ICU") list(APPEND LIBS icuuc) @@ -133,7 +133,7 @@ endif () # Check if PIP support cryptographic encryption/decryption by using sodium library -if (${CRYPT}) +if (CRYPT) message(STATUS "Building with crypt support") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DPIP_CRYPT") list(APPEND LIBS sodium) @@ -143,7 +143,7 @@ endif () # Check if PIP should be built with containers introspection -if (${INTROSPECTION_CONTAINERS}) +if (INTROSPECTION_CONTAINERS) message(STATUS "Building with containers introspection") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DPIP_INTROSPECTION_CONTAINERS") else () @@ -152,7 +152,7 @@ endif () # Check if PIP should be built with threads introspection -if (${INTROSPECTION_THREADS}) +if (INTROSPECTION_THREADS) message(STATUS "Building with threads introspection") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DPIP_INTROSPECTION_THREADS") else ()