CMake generates broken Xcode project #3

cadaver opened this Issue Jun 6, 2012 · 0 comments

1 participant


The following loop in kNet's CMakeLists.txt causes the generated Xcode project to be unopenable:

foreach(srcFile ${kNetSourceFiles})
get_filename_component(baseName ${srcFile} NAME)
set_source_files_properties(${srcFile} PROPERTIES COMPILE_FLAGS "-DDEBUG_CPP_NAME=\"\\"${baseName}\"\\"")

This could be conditionally included by checking CMAKE_GENERATOR variable. It should be "Xcode" when generating Xcode project.

@juj juj closed this in 9b5b3dc May 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment