Skip to content

Commit

Permalink
CheckStructPacking: use LINK_OPTIONS
Browse files Browse the repository at this point in the history
revert of 0cce80d

Debian buster is now oldoldstable, and there are other features in cmake
3.14 that I'll eventually use.
  • Loading branch information
DankRank committed Oct 29, 2023
1 parent 663477e commit 80a3697
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion INSTALL
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Build requirements:
cmake >=3.13
cmake >=3.14
flex >=2.5.31
bison >=3.6.4
(optional) pkg-config
Expand Down
3 changes: 1 addition & 2 deletions cmake/CheckStructPacking.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ function(__check_struct_packing_impl what preamble var)
configure_file(${__check_struct_packing_dir}/CheckStructPacking.c.in ${src} @ONLY)
try_compile(${var} ${CMAKE_BINARY_DIR} ${src}
COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
# CMake 3.14
#LINK_OPTIONS ${CMAKE_REQUIRED_LINK_OPTIONS}
LINK_OPTIONS ${CMAKE_REQUIRED_LINK_OPTIONS}
LINK_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES}
CMAKE_FLAGS
"-DCOMPILE_DEFINITIONS:STRING=${CMAKE_REQUIRED_FLAGS}"
Expand Down

0 comments on commit 80a3697

Please sign in to comment.