Skip to content

Commit

Permalink
Fix EXCLUDE_FROM_ALL
Browse files Browse the repository at this point in the history
  • Loading branch information
romainthomas committed Jan 27, 2024
1 parent 21efe57 commit f5ed2df
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ add_subdirectory(src)

if(NOT LIEF_PY_LIEF_EXT)
add_library(LIEF::LIEF ALIAS LIB_LIEF)
set_target_properties(LIB_LIEF PROPERTIES EXCLUDE_FROM_ALL ON)
endif()

if(NOT LIEF_OPT_MBEDTLS_EXTERNAL)
Expand Down
1 change: 1 addition & 0 deletions api/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ if (LIEF_PY_LIEF_EXT)
find_package(LIEF REQUIRED COMPONENTS STATIC)
message(STATUS "Using pre-installed version of LIEF")
set(LIEF_TARGET LIEF::LIEF)
set_target_properties(LIB_LIEF PROPERTIES EXCLUDE_FROM_ALL ON)
else()
set(LIEF_TARGET LIB_LIEF)
endif()
Expand Down

0 comments on commit f5ed2df

Please sign in to comment.