mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
cmake: fix nasm sources build when building in a separate directory
When building in the same directory as the source, it works, but not in
a separate directory. The trailing slash is important with nasm. Note
that include_directories("${CMAKE_CURRENT_SOURCE_DIR}/") does not work
because cmake seems to strip the trailing slash.
Also relax the cmake version requirement from 3.12 to 3.9 as everywhere
else in the tree: it works just fine.
This commit is contained in:
committed by
Erik de Castro Lopo
parent
d4a1b345dd
commit
952d511655
@@ -1,6 +1,7 @@
|
||||
cmake_minimum_required(VERSION 3.12)
|
||||
cmake_minimum_required(VERSION 3.9)
|
||||
|
||||
include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
#include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
add_compile_options(-I${CMAKE_CURRENT_SOURCE_DIR}/)
|
||||
|
||||
if(APPLE)
|
||||
add_compile_options(-dOBJ_FORMAT_macho)
|
||||
|
||||
Reference in New Issue
Block a user