diff --git a/changelogs/unreleased/shankara__pcl-include-fix.yaml b/changelogs/unreleased/shankara__pcl-include-fix.yaml new file mode 100644 index 000000000..0a0d23813 --- /dev/null +++ b/changelogs/unreleased/shankara__pcl-include-fix.yaml @@ -0,0 +1,2 @@ +fixed: + - Used the wrong PCL guard variable in CMakeLists.txt. diff --git a/include/llzk/Transforms/CMakeLists.txt b/include/llzk/Transforms/CMakeLists.txt index 613950e73..72a346a09 100644 --- a/include/llzk/Transforms/CMakeLists.txt +++ b/include/llzk/Transforms/CMakeLists.txt @@ -1,7 +1,7 @@ include_directories(${MLIR_INCLUDE_DIRS} ${LLZK_INCLUDE_DIR}) set(_TBLGEN_PCL_FLAG "") -if(LLZK_WITH_PCL) +if(LLZK_WITH_PCL_BOOL) set(_TBLGEN_PCL_FLAG "-DWITH_PCL") endif() diff --git a/lib/Transforms/CMakeLists.txt b/lib/Transforms/CMakeLists.txt index f5e6ab3bf..22b0be34b 100644 --- a/lib/Transforms/CMakeLists.txt +++ b/lib/Transforms/CMakeLists.txt @@ -4,7 +4,7 @@ add_library(LLZK::LLZKTransforms ALIAS LLZKTransforms) file(GLOB LLZKTransforms_SOURCES "*.cpp") # Remove the PCL lowering .cpp only when disabled. -if(NOT LLZK_WITH_PCL) +if(NOT LLZK_WITH_PCL_BOOL) list(REMOVE_ITEM LLZKTransforms_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/LLZKPCLLoweringPass.cpp") endif() diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 0711bdbe8..07d49478a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -20,7 +20,7 @@ set(LIT_ARGS "--xunit-xml-output report.xml") # creating this guard and setting to 0-1 # because python doesn't like the ON/OFF stuff set(LLZK_WITH_PCL_GUARD 0) -if(LLZK_WITH_PCL) +if(LLZK_WITH_PCL_BOOL) set(LLZK_WITH_PCL_GUARD 1) endif()